From a7da65d780429ee6615602e3c93216a108ff2778 Mon Sep 17 00:00:00 2001 From: NaN03 <73582053+hatrd@users.noreply.github.com> Date: Sun, 3 Nov 2024 12:07:21 +0800 Subject: [PATCH] change trojan ws path name from "serviceName" to "path" to fit v2rayN export format. (#1553) --- service/core/serverObj/trojan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/core/serverObj/trojan.go b/service/core/serverObj/trojan.go index da399a80..b7f5929a 100644 --- a/service/core/serverObj/trojan.go +++ b/service/core/serverObj/trojan.go @@ -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", }