Skip to content

Commit

Permalink
Update websocket.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xumng123 authored May 24, 2021
1 parent a402a7b commit 50d7bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/vmess/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func StreamWebsocketConn(conn net.Conn, c *WebsocketConfig, ed []byte) (net.Conn
}

if ed != nil {
headers.Set("Sec-WebSocket-Protocol", base64.RawURLEncoding.EncodeToString(ed)))
headers.Set("Sec-WebSocket-Protocol", base64.RawURLEncoding.EncodeToString(ed))
}

wsConn, resp, err := dialer.Dial(uri.String(), headers)
Expand Down

0 comments on commit 50d7bfc

Please sign in to comment.