snowflake/proxy
David Fifield fac361c4a1 Bug 31203: Rewrite Parse.byteCount to fix bugs.
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".
2019-07-22 16:22:52 -06:00
..
spec Bug 31203: Add tests for Parse.byteCount and Params.getByteCount. 2019-07-22 16:22:52 -06:00
static Update the main page on the static website 2019-07-13 15:53:37 +02:00
webext Bump version of webextension 2019-07-12 10:47:34 -04:00
.eslintignore Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
.eslintrc.json Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
broker.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
config.js Adding back the STUN server port configuration 2019-07-12 10:21:38 -04:00
init-badge.js Bug 31126: Use URLSearchParams instead of Query.parse. 2019-07-18 18:29:59 -06:00
init-node.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
init-webext.js Set the browser action icon to off when webrtc is disabled 2019-07-13 12:48:21 +02:00
make.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
package.json Lint with eslint 2019-07-10 10:58:29 +02:00
proxypair.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
README.md Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
shims.js Bug 31126: Use URLSearchParams instead of Query.parse. 2019-07-18 18:29:59 -06:00
snowflake.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
ui.js Cleanup lints identified by eslint 2019-07-10 10:58:29 +02:00
util.js Bug 31203: Rewrite Parse.byteCount to fix bugs. 2019-07-22 16:22:52 -06:00
websocket.js Use URLSearchParams.toString instead of Query.buildString. 2019-07-18 18:30:25 -06:00

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/.