From 400dc923e0643d28b9b62405d5d5968f043659b2 Mon Sep 17 00:00:00 2001 From: maskedeken <52683904+maskedeken@users.noreply.github.com> Date: Wed, 8 Sep 2021 14:44:24 +0800 Subject: [PATCH] Fix: vmess ws headers not set properly (#1595) --- adapter/outbound/vmess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/outbound/vmess.go b/adapter/outbound/vmess.go index 445b1ef4..6ca82c15 100644 --- a/adapter/outbound/vmess.go +++ b/adapter/outbound/vmess.go @@ -95,7 +95,7 @@ func (v *Vmess) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) { 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