[websocket mode] alpn in client-hello make it's v2ray
liudongmiao opened this issue · 6 comments
type | alpn |
---|---|
go-https (net/http) | h2, http/1.1 |
v2ray-core | http/1.1 |
go-websocket (github.com/gorilla/websocket) | N/A |
Referer: 8e791e9#diff-98874970fe9e833c1469702de67b4a0d1c731059ad04a00a349093f52f141f31R48
And for web browsers:
scheme | alpn |
---|---|
https | h2, http/1.1 |
wss | http/1.1 |
Please note, websocket over http2 is not supported.
IMO, v2ray-core should send h2, http/1.1
like go-https (net/http), however, this requires server (like nginx) turn off http2.
FYI: WebSocket over H2 is supported after Chrome 91. https://chromestatus.com/feature/6251293127475200
FYI: WebSocket over H2 is supported after Chrome 91. https://chromestatus.com/feature/6251293127475200
@klzgrad I have chedked it before, however there is no way to turn on. And from my case, browser always send http/1.1 for wss.
https://bugs.chromium.org/p/chromium/issues/detail?id=801564#c48
It's always enabled
@klzgrad Just use chrome with a wss://.... then use wireshark to dump the packets.
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days