diff --git a/component/vmess/websocket.go b/component/vmess/websocket.go index 129ae4b59a..ddb90f2f3b 100644 --- a/component/vmess/websocket.go +++ b/component/vmess/websocket.go @@ -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)