From d5c3a25dec7f235ce34890fcc0f9eb9e7933c2b0 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Sun, 25 May 2014 08:01:11 +0000 Subject: Parse TOR_PT_PROXY and support sending DONE/PROXY-ERROR. Currently obfs4proxy is hardcoded to always PROXY-ERROR, despite a valid proxy uri being passed in the env var. Once the dialer portion of the code is done, this will be changed. Part of issue #7. --- obfs4proxy/obfs4proxy.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'obfs4proxy/obfs4proxy.go') diff --git a/obfs4proxy/obfs4proxy.go b/obfs4proxy/obfs4proxy.go index ae18c5d..2e8a011 100644 --- a/obfs4proxy/obfs4proxy.go +++ b/obfs4proxy/obfs4proxy.go @@ -299,6 +299,16 @@ func clientSetup() (launched bool) { return } + ptClientProxy, err := ptGetProxy() + if err != nil { + log.Fatal(err) + return + } + if ptClientProxy != nil { + // XXX: Remove this once done. + ptProxyError("proxy are not supported yet") + } + for _, methodName := range ptClientInfo.MethodNames { switch methodName { case obfs4Method: -- cgit v1.2.3