mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Compile coffee files and remove them
With, ./node_modules/.bin/coffee -b -c Cakefile `find . -path ./node_modules -prune -o -name '*.coffee'`
This commit is contained in:
parent
82562fb21d
commit
31ad9566e6
38 changed files with 2277 additions and 1725 deletions
27
proxy/init-node.js
Normal file
27
proxy/init-node.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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();
|
Loading…
Add table
Add a link
Reference in a new issue