mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-18 16:59:55 -04:00
support header override in websocket
This commit is contained in:
@@ -59,7 +59,7 @@ func dialWebsocket(ctx context.Context, dest net.Destination) (net.Conn, error)
|
||||
}
|
||||
uri := protocol + "://" + host + wsSettings.GetNormailzedPath()
|
||||
|
||||
conn, resp, err := dialer.Dial(uri, nil)
|
||||
conn, resp, err := dialer.Dial(uri, wsSettings.GetRequestHeader())
|
||||
if err != nil {
|
||||
var reason string
|
||||
if resp != nil {
|
||||
|
||||
Reference in New Issue
Block a user