From d9790fb7c615e73c580c4c0e783babc0624f8c6d Mon Sep 17 00:00:00 2001 From: zu1k Date: Fri, 14 Aug 2020 11:02:26 +0800 Subject: [PATCH] fix ws-path --- proxy/vmess.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/vmess.go b/proxy/vmess.go index ed4ea0d..b48c71c 100644 --- a/proxy/vmess.go +++ b/proxy/vmess.go @@ -207,6 +207,9 @@ func ParseVmessLink(link string) (*Vmess, error) { wsHeaders["HOST"] = vmessJson.Host } + if vmessJson.Path == "" { + vmessJson.Path = "/" + } return &Vmess{ Base: Base{ Name: vmessJson.Ps + "_" + strconv.Itoa(rand.Int()),