mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 23:57:15 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user