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

View File

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