Disable insecure when cert pinned (#8733)

This commit is contained in:
DHR60 2026-02-01 15:34:04 +08:00 committed by GitHub
parent d589713fd5
commit eb0f5bafde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -325,6 +325,7 @@ public partial class CoreConfigV2rayService
else if (!node.CertSha.IsNullOrEmpty()) else if (!node.CertSha.IsNullOrEmpty())
{ {
tlsSettings.pinnedPeerCertSha256 = node.CertSha; tlsSettings.pinnedPeerCertSha256 = node.CertSha;
tlsSettings.allowInsecure = false;
} }
streamSettings.tlsSettings = tlsSettings; streamSettings.tlsSettings = tlsSettings;
} }