Skip to content

Commit

Permalink
Merge pull request #27 from MoeGakuen/master
Browse files Browse the repository at this point in the history
解决检查更新时提示“请求被中止: 未能创建 SSL/TLS 安全通道。”
  • Loading branch information
zyzsdy authored Mar 10, 2018
2 parents c118c78 + d934542 commit abcf109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BiLiRoku/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private void Check()
wc.Headers.Add("Accept: application/json;q=0.9,*/*;q=0.5");
wc.Headers.Add("User-Agent: " + Ver.UA);
wc.Headers.Add("Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4");
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
//发送HTTP请求获取Release信息
string releaseJson = null;
Expand Down

0 comments on commit abcf109

Please sign in to comment.