Add Cert SHA-256 pinning support (#8613)

This commit is contained in:
DHR60
2026-01-17 15:42:40 +08:00
committed by GitHub
parent a45a1dc982
commit 4e5f1838a2
20 changed files with 184 additions and 17 deletions
@@ -301,6 +301,10 @@ public partial class CoreConfigV2rayService
tlsSettings.disableSystemRoot = true;
tlsSettings.allowInsecure = false;
}
else if (!node.CertSha.IsNullOrEmpty())
{
tlsSettings.pinnedPeerCertSha256 = node.CertSha;
}
streamSettings.tlsSettings = tlsSettings;
}