diff --git a/common/convert/converter.go b/common/convert/converter.go index c69a258a..c9cdbf3d 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -201,6 +201,10 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { trojan["client-fingerprint"] = fingerprint } + if pcs := query.Get("pcs"); pcs != "" { + trojan["fingerprint"] = pcs + } + proxies = append(proxies, trojan) case "vless": diff --git a/common/convert/v.go b/common/convert/v.go index 4102ab75..a9039c5a 100644 --- a/common/convert/v.go +++ b/common/convert/v.go @@ -35,6 +35,9 @@ func handleVShareLink(names map[string]int, url *url.URL, scheme string, proxy m if alpn := query.Get("alpn"); alpn != "" { proxy["alpn"] = strings.Split(alpn, ",") } + if pcs := query.Get("pcs"); pcs != "" { + proxy["fingerprint"] = pcs + } } if sni := query.Get("sni"); sni != "" { proxy["servername"] = sni