diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2014-05-25 10:28:32 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2014-05-25 10:28:32 +0000 |
commit | 3c64e04e0237e7b730c277d7977ac1cf18a483b9 (patch) | |
tree | d008edc21bf97573609ff065b07780322d055560 /obfs4proxy/obfs4proxy.go | |
parent | f0090b5127689b8673543138662b6163ed792e11 (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.go | 2 |
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 |