Disable insecure when cert pinned

This commit is contained in:
DHR60 2026-01-31 23:01:16 +08:00
parent d589713fd5
commit fa7df5e360

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;
} }