移除tls版本显式指定

This commit is contained in:
老九 2021-11-05 22:03:31 +08:00
parent 4103b15249
commit 4f305ef7c8
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,6 @@ using System.Net.Http;
using System.Net.Security;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
@ -144,7 +143,6 @@ namespace FastGithub.Http
await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions
{
TargetHost = tlsSniValue.Value,
EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13,
RemoteCertificateValidationCallback = ValidateServerCertificate
}, cancellationToken);

View File

@ -9,6 +9,8 @@ github加速神器解决github打不开、用户头像无法加载、releases
### 2 部署方式
#### 2.1 windows-x64
* 双击运行FastGithub.UI.exe
* `fastgithub.exe start` // 以windows服务安装并启动
* `fastgithub.exe stop` // 以windows服务卸载并删除
#### 2.2 linux-x64
* 执行`./fastgithub`