Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
bug fix/support tlsv1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lslqtz authored Oct 17, 2021
1 parent f84ba1e commit 643a91a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions osu-download/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Program
{
static string Author = "asd";
static string ProgramTitle = "osu! 镜像下载客户端";
static string CurDLClientVer = "b20200626.1";
static string CurDLClientVer = "b20211017.1";
static string ServerURL = "https://mirror.osu.pink/osu-update.php";
static string DefaultUserAgent = string.Format("osu-download/{0}", CurDLClientVer);
static bool isUnix = System.Environment.OSVersion.ToString().ToLower().Contains("unix");
Expand Down Expand Up @@ -181,7 +181,13 @@ static void Main(string[] args)
default:
goto recheck;
}
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192;
try
{
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)768;
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)3072;
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)12288;
} catch { }
try
{
Console.WriteLine("正在获取 Mirror...");
Expand Down

0 comments on commit 643a91a

Please sign in to comment.