Skip to content

Commit

Permalink
Fix: vmess ws headers not set properly (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskedeken authored Sep 8, 2021
1 parent 5b7f0de commit 400dc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/outbound/vmess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 400dc92

Please sign in to comment.