From 3c64e04e0237e7b730c277d7977ac1cf18a483b9 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Sun, 25 May 2014 10:28:32 +0000 Subject: 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. --- obfs4proxy/obfs4proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'obfs4proxy/obfs4proxy.go') 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 -- cgit v1.2.3