Skip to content

Commit

Permalink
fix remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkek committed Mar 19, 2021
1 parent 9d7d799 commit dd0cb08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UltimateOsuServerLauncher/Models/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void SetDefault()

public static Config FromRemote()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var wc = new WebClient();
var str = wc.DownloadString("https://raw.githubusercontent.com/Airkek/ultimate-osu-server-launcher/main/default.json");

Expand All @@ -65,7 +66,7 @@ public static Config Read()
{
cfg = FromRemote();
}
catch
catch (Exception e)
{
cfg = new Config();
cfg.SetDefault();
Expand Down

0 comments on commit dd0cb08

Please sign in to comment.