mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-28 09:32:07 +03:00
Disable insecure when cert pinned (#8733)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user