排除vscode
This commit is contained in:
parent
3df09d549e
commit
54fa76488b
@ -10,6 +10,7 @@ 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;
|
||||
@ -143,6 +144,7 @@ namespace FastGithub.Http
|
||||
await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions
|
||||
{
|
||||
TargetHost = tlsSniValue.Value,
|
||||
EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13,
|
||||
RemoteCertificateValidationCallback = ValidateServerCertificate
|
||||
}, cancellationToken);
|
||||
|
||||
|
||||
@ -13,6 +13,9 @@
|
||||
"gist.github.com": {
|
||||
"TlsIgnoreNameMismatch": true
|
||||
},
|
||||
"vscode-auth.github.com": {
|
||||
"TlsSni": true
|
||||
},
|
||||
"*.github.com": {
|
||||
"TlsIgnoreNameMismatch": true
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user