summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Tarsiger <rtarsiger@dasyatidae.com>2016-04-03 15:02:47 -0500
committerRobin Tarsiger <rtarsiger@dasyatidae.com>2016-04-03 15:14:08 -0500
commit49f19c6612091ba54a6cf5eb71868bb67fc62d1d (patch)
treede9fadeda05e5d95694ad6297430bc2df388fab0
parent6cb9b5a231d7f41e409daa012ee7d50a52c65daa (diff)
Explicitly import proxy dialers for side effects
These register themselves at init time. Previously they were in the main package and thus did not need to be explicitly imported.
-rw-r--r--obfs4proxy/obfs4proxy.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/obfs4proxy/obfs4proxy.go b/obfs4proxy/obfs4proxy.go
index 6673713..cad1cdd 100644
--- a/obfs4proxy/obfs4proxy.go
+++ b/obfs4proxy/obfs4proxy.go
@@ -47,6 +47,9 @@ import (
"github.com/OperatorFoundation/obfs4/modes/pt_socks5"
"github.com/OperatorFoundation/obfs4/modes/transparent_tcp"
"github.com/OperatorFoundation/obfs4/modes/transparent_udp"
+
+ _ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4"
+ _ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http"
)
const (