mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
19 lines
334 B
CoffeeScript
19 lines
334 B
CoffeeScript
###
|
|
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()
|