mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Normally all dangling goroutines are terminated when the main function exits. However, for projects that use a patched version of snowflake as a library, these goroutines continued running as long as the main function had not yet terminated. This commit has all open SOCKS connections close after receiving a shutdown signal. |
||
---|---|---|
.. | ||
lib | ||
client_test.go | ||
README.md | ||
snowflake.go | ||
torrc | ||
torrc-localhost |
This is the Tor client component of Snowflake.
It is based on goptlib.
Flags
The client uses these following torrc
options by default:
ClientTransportPlugin snowflake exec ./client \
-url https://snowflake-broker.azureedge.net/ \
-front ajax.aspnetcdn.com \
-ice stun:stun.l.google.com:19302
-url
should be the URL of a Broker instance.
-front
is an optional front domain for the Broker request.
-ice
is a comma-separated list of ICE servers. These can be STUN or TURN
servers.