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

This commit is contained in:
gVisor bot 2021-09-08 14:44:24 +08:00
parent 29ba671244
commit 9c46fabbe4

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 {
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