Fix: VLESS WSOpts Headers

This commit is contained in:
yaling888 2021-09-08 04:34:11 +08:00
parent b904ca0bcc
commit 9254d2411e

View file

@ -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)