Fix: VLESS WSOpts Headers

This commit is contained in:
gVisor bot 2021-09-08 04:34:11 +08:00
parent 3817f2ae91
commit cfa6da15e7

View File

@ -69,7 +69,7 @@ func (v *Vless) StreamConn(c net.Conn, metadata *C.Metadata) (net.Conn, error) {
EarlyDataHeaderName: v.option.WSOpts.EarlyDataHeaderName, EarlyDataHeaderName: v.option.WSOpts.EarlyDataHeaderName,
} }
if len(v.option.WSHeaders) != 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.WSHeaders {
header.Add(key, value) header.Add(key, value)