summaryrefslogtreecommitdiff
path: root/obfs4proxy/obfs4proxy.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-25 10:28:32 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-25 10:28:32 +0000
commit3c64e04e0237e7b730c277d7977ac1cf18a483b9 (patch)
treed008edc21bf97573609ff065b07780322d055560 /obfs4proxy/obfs4proxy.go
parentf0090b5127689b8673543138662b6163ed792e11 (diff)
Add support for SOCKS4.
Despite the unfortunate scheme name, this really is SOCKS4, and not 4a, as the torrc Socks4Proxy option only supports addresses and not FQDNs. Part of issue #7.
Diffstat (limited to 'obfs4proxy/obfs4proxy.go')
-rw-r--r--obfs4proxy/obfs4proxy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/obfs4proxy/obfs4proxy.go b/obfs4proxy/obfs4proxy.go
index c00ee88..2d292ce 100644
--- a/obfs4proxy/obfs4proxy.go
+++ b/obfs4proxy/obfs4proxy.go
@@ -310,7 +310,7 @@ func clientSetup() (launched bool) {
}
if ptClientProxy != nil {
// XXX: Limit this to SOCKS5 for now.
- if ptClientProxy.Scheme != "socks5" {
+ if ptClientProxy.Scheme == "http" {
ptProxyError(fmt.Sprintf("proxy scheme not supported: %s",
ptClientProxy.Scheme))
return