1
0
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:
Darien Raymond
2017-10-13 23:54:04 +08:00
parent 476d67f494
commit 669a0cafaf
4 changed files with 59 additions and 28 deletions

View File

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