change trojan ws path name from "serviceName" to "path" to fit v2rayN export format. (#1553)

This commit is contained in:
NaN03 2024-11-03 12:07:21 +08:00 committed by GitHub
parent 53f7376ca4
commit a7da65d780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ func ParseTrojanURL(u string) (data *Trojan, err error) {
Sni: sni,
Alpn: t.Query().Get("alpn"),
Type: t.Query().Get("type"),
Path: t.Query().Get("serviceName"),
Path: t.Query().Get("path"),
AllowInsecure: allowInsecure == "1" || allowInsecure == "true",
Protocol: "trojan",
}