fix(link): map vcn to verifyPeerCertByName in applySecurity (#6479)

Go share-link importer dropped verifyPeerCertByName for VLESS/Trojan/SS
TLS while the TS parser and Hysteria2 path already kept it. Fixes #6477.

Co-authored-by: mrchatam <287639636+mrchatam@users.noreply.github.com>
This commit is contained in:
mrchatam
2026-09-12 12:34:10 +03:30
committed by GitHub
parent dd46a06761
commit f51b0040cf
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -666,6 +666,7 @@ func applySecurity(stream map[string]any, p url.Values) {
tls["alpn"] = splitComma(alpn)
}
tls["echConfigList"] = p.Get("ech")
tls["verifyPeerCertByName"] = p.Get("vcn")
tls["pinnedPeerCertSha256"] = p.Get("pcs")
case "reality":
re := stream["realitySettings"].(map[string]any)