mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
With, ./node_modules/.bin/coffee -b -c Cakefile `find . -path ./node_modules -prune -o -name '*.coffee'`
27 lines
450 B
JavaScript
27 lines
450 B
JavaScript
// Generated by CoffeeScript 2.4.1
|
|
/*
|
|
Entry point.
|
|
*/
|
|
var broker, config, dbg, log, snowflake, ui;
|
|
|
|
config = new Config;
|
|
|
|
ui = new UI();
|
|
|
|
broker = new Broker(config.brokerUrl);
|
|
|
|
snowflake = new Snowflake(config, ui, broker);
|
|
|
|
log = function(msg) {
|
|
return console.log('Snowflake: ' + msg);
|
|
};
|
|
|
|
dbg = log;
|
|
|
|
log('== snowflake proxy ==');
|
|
|
|
dbg('Contacting Broker at ' + broker.url);
|
|
|
|
snowflake.setRelayAddr(config.relayAddr);
|
|
|
|
snowflake.beginWebRTC();
|