mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
The client opts into turbotunnel mode by sending a magic token at the beginning of each WebSocket connection (before sending even the ClientID). The token is just a random byte string I generated. The server peeks at the token and, if it matches, uses turbotunnel mode. Otherwise, it unreads the token and continues in the old one-session-per-WebSocket mode. |
||
---|---|---|
.. | ||
interfaces.go | ||
lib_test.go | ||
peers.go | ||
rendezvous.go | ||
snowflake.go | ||
turbotunnel.go | ||
util.go | ||
webrtc.go |