移除tls版本显式指定
This commit is contained in:
parent
4103b15249
commit
4f305ef7c8
@ -10,7 +10,6 @@ using System.Net.Http;
|
|||||||
using System.Net.Security;
|
using System.Net.Security;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Security.Authentication;
|
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -144,7 +143,6 @@ namespace FastGithub.Http
|
|||||||
await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions
|
await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions
|
||||||
{
|
{
|
||||||
TargetHost = tlsSniValue.Value,
|
TargetHost = tlsSniValue.Value,
|
||||||
EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13,
|
|
||||||
RemoteCertificateValidationCallback = ValidateServerCertificate
|
RemoteCertificateValidationCallback = ValidateServerCertificate
|
||||||
}, cancellationToken);
|
}, cancellationToken);
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,8 @@ github加速神器,解决github打不开、用户头像无法加载、releases
|
|||||||
### 2 部署方式
|
### 2 部署方式
|
||||||
#### 2.1 windows-x64
|
#### 2.1 windows-x64
|
||||||
* 双击运行FastGithub.UI.exe
|
* 双击运行FastGithub.UI.exe
|
||||||
|
* `fastgithub.exe start` // 以windows服务安装并启动
|
||||||
|
* `fastgithub.exe stop` // 以windows服务卸载并删除
|
||||||
|
|
||||||
#### 2.2 linux-x64
|
#### 2.2 linux-x64
|
||||||
* 执行`./fastgithub`
|
* 执行`./fastgithub`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user