mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
chore: converter support fingerprint for vmess/vless/trojan
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user