From dd0cb088c2996ebd55135c4d94116e12e6e5baad Mon Sep 17 00:00:00 2001 From: Keijia Date: Sat, 20 Mar 2021 00:14:30 +0300 Subject: [PATCH] fix remote --- UltimateOsuServerLauncher/Models/Config.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UltimateOsuServerLauncher/Models/Config.cs b/UltimateOsuServerLauncher/Models/Config.cs index 03c6de0..b056785 100644 --- a/UltimateOsuServerLauncher/Models/Config.cs +++ b/UltimateOsuServerLauncher/Models/Config.cs @@ -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"); @@ -65,7 +66,7 @@ public static Config Read() { cfg = FromRemote(); } - catch + catch (Exception e) { cfg = new Config(); cfg.SetDefault();