From 9254d2411e60025dc8ef3402d45f9a4fbc9ab6b9 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 8 Sep 2021 04:34:11 +0800 Subject: [PATCH] Fix: VLESS WSOpts Headers --- adapter/outbound/vless.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/outbound/vless.go b/adapter/outbound/vless.go index 4d7843df..10502fc7 100644 --- a/adapter/outbound/vless.go +++ b/adapter/outbound/vless.go @@ -69,7 +69,7 @@ func (v *Vless) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) { EarlyDataHeaderName: v.option.WSOpts.EarlyDataHeaderName, } - if len(v.option.WSHeaders) != 0 { + if len(v.option.WSOpts.Headers) != 0 { header := http.Header{} for key, value := range v.option.WSHeaders { header.Add(key, value)