1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-20 16:26:23 -05:00

fix error typo for browser forwarder(Sec-Websocket-Protocol)

This commit is contained in:
Shelikhoo 2021-09-05 10:31:40 +01:00
parent 7aeb7d9ce6
commit 1f70ab99e8
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -54,7 +54,7 @@ func (f *Forwarder) DialWebsocket(url string, header http.Header) (io.ReadWriteC
}
}
if unsupportedHeader {
return nil, newError("unsupported header used, only Sec-WebSocket-Protocol is supported for forwarder")
return nil, newError("unsupported header used, only Sec-Websocket-Protocol is supported for forwarder")
}
if !protocolHeader {
return f.forwarder.Dial(url)