Fix: vmess ws headers not set properly (#1595)

This commit is contained in:
yaling888 2021-09-08 21:20:16 +08:00 committed by GitHub
commit 738bd3b0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ func (v *Vmess) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) {
if len(v.option.WSOpts.Headers) != 0 { if len(v.option.WSOpts.Headers) != 0 {
header := http.Header{} header := http.Header{}
for key, value := range v.option.WSHeaders { for key, value := range v.option.WSOpts.Headers {
header.Add(key, value) header.Add(key, value)
} }
wsOpts.Headers = header wsOpts.Headers = header