From ae619e4163017bb369769fc6c9c9ab814a3d15e5 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 8 Sep 2021 21:32:08 +0800 Subject: [PATCH] Fix: VLESS WSOpts --- adapter/outbound/vless.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/outbound/vless.go b/adapter/outbound/vless.go index 10502fc7..c148798f 100644 --- a/adapter/outbound/vless.go +++ b/adapter/outbound/vless.go @@ -64,14 +64,14 @@ func (v *Vless) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) { wsOpts := &vmess.WebsocketConfig{ Host: host, Port: port, - Path: v.option.WSPath, + Path: v.option.WSOpts.Path, MaxEarlyData: v.option.WSOpts.MaxEarlyData, EarlyDataHeaderName: v.option.WSOpts.EarlyDataHeaderName, } if len(v.option.WSOpts.Headers) != 0 { header := http.Header{} - for key, value := range v.option.WSHeaders { + for key, value := range v.option.WSOpts.Headers { header.Add(key, value) } wsOpts.Headers = header