mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
There were two problems having to do with looking up in the UNITS object. (1) It was checking for undefined keys by comparing to null, rather than undefined. (2) It was finding Object.prototype keys like "toString". |
||
---|---|---|
.. | ||
spec | ||
static | ||
webext | ||
.eslintignore | ||
.eslintrc.json | ||
broker.js | ||
config.js | ||
init-badge.js | ||
init-node.js | ||
init-webext.js | ||
make.js | ||
package.json | ||
proxypair.js | ||
README.md | ||
shims.js | ||
snowflake.js | ||
ui.js | ||
util.js | ||
websocket.js |
This is the browser proxy component of Snowflake.
Embedding
See https://snowflake.torproject.org/ for more info:
<iframe src="https://snowflake.torproject.org/embed.html" width="88" height="16" frameborder="0" scrolling="no"></iframe>
Building
npm run build
Testing
Unit testing with Jasmine are available with:
npm install
npm test
To run locally, either:
- Navigate to
proxy/build/embed.html
- For a more fully featured "debug" version,
start a webserver and navigate to
snowflake.html
.
Parameters
With no parameters,
snowflake uses the default relay snowflake.bamsoftware.com:443
and
uses automatic signaling with the default broker at
https://snowflake-broker.bamsoftware.com/
.