summaryrefslogtreecommitdiff
path: root/pkg/snowflake/bootstrap.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2022-01-25 19:54:21 +0100
committerkali kaneko (leap communications) <kali@leap.se>2022-02-02 12:38:15 +0100
commitfca2ee8d7aeee99e3e24a8cab90c17d7b7c34494 (patch)
tree2fe322f5a3ded25c955328cb3a6d60303227b711 /pkg/snowflake/bootstrap.go
parent3b138181fe893cacf2c39cf224cc9d3ef91da5a4 (diff)
[feat] expose snowflake to ui
Diffstat (limited to 'pkg/snowflake/bootstrap.go')
-rw-r--r--pkg/snowflake/bootstrap.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/snowflake/bootstrap.go b/pkg/snowflake/bootstrap.go
index 5e90b0e..7a093af 100644
--- a/pkg/snowflake/bootstrap.go
+++ b/pkg/snowflake/bootstrap.go
@@ -22,7 +22,7 @@ import (
// [ ] fix snowflake-client binary
// [ ] find tor path
-const torrc = `UseBridges 1
+const torrcOrig = `UseBridges 1
DataDirectory datadir
ClientTransportPlugin snowflake exec /usr/local/bin/snowflake-client -log /tmp/snowflake.log -url https://snowflake-broker.torproject.net.global.prod.fastly.net/ \
@@ -33,6 +33,17 @@ Bridge snowflake 192.0.2.3:1
SocksPort auto`
+const torrc = `UseBridges 1
+DataDirectory datadir
+
+ClientTransportPlugin snowflake exec /usr/local/bin/snowflake-client -log /tmp/snowflake.log -url https://snowflake-broker.azureedge.net/ \
+-front ajax.aspnetcdn.com -ice stun:stun.l.google.com:19302 \
+-max 5
+
+Bridge snowflake 192.0.2.3:1
+
+SocksPort auto`
+
type StatusEvent struct {
Progress int
Tag string