mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Separate build per use
This commit is contained in:
parent
2d8a1690ba
commit
4d40f17487
6 changed files with 94 additions and 25 deletions
19
proxy/init-node.coffee
Normal file
19
proxy/init-node.coffee
Normal file
|
@ -0,0 +1,19 @@
|
|||
###
|
||||
Entry point.
|
||||
###
|
||||
|
||||
config = new Config
|
||||
ui = new UI()
|
||||
broker = new Broker config.brokerUrl
|
||||
snowflake = new Snowflake config, ui, broker
|
||||
|
||||
log = (msg) ->
|
||||
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