snowflake/proxy
Arlo Breault fb0578d840 Don't specify port for stun server
No idea why but, with it, when a client disconnects the datachannel
doesn't close.  This wasn't an issue prior to 359600d since the
configuration wasn't being passed to the peerconnection constructor.

This probably just makes the url invalid and falls back to a default in
libwebrtc.
2019-07-10 10:58:16 +02:00
..
spec Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
static Remove Modernizr dependency 2019-05-08 11:23:49 -04:00
webext Version bump because of missing icons 2019-07-05 17:10:15 -04:00
broker.js Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02:00
config.js Don't specify port for stun server 2019-07-10 10:58:16 +02:00
init-badge.js Don't overwrite global location 2019-07-10 10:56:00 +02:00
init-node.js Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02:00
init-webext.js Ensure snnowflake was initialized in unload handlers 2019-07-10 10:55:45 +02:00
make.js Rename Cakefile and make it work 2019-07-10 10:49:53 +02:00
package.json Rename Cakefile and make it work 2019-07-10 10:49:53 +02:00
proxypair.js Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02:00
README.md Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
shims.js Don't overwrite global location 2019-07-10 10:56:00 +02:00
snowflake.js Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
ui.js Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02:00
util.js Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
websocket.js Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02: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/.