]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-git-proxy: use SOCKS4a instead of SOCKS4
authorRoss Burton <ross.burton@intel.com>
Tue, 26 Aug 2014 14:44:42 +0000 (15:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Oct 2014 09:39:12 +0000 (10:39 +0100)
In some situations where a proxy is required the client can't even do DNS
lookups, so instead of using SOCKS4 use SOCKS4a which moves the name resolution
from the client to the proxy.

Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-git-proxy

index 98191faadd3c76cb4049b9c59fb548414ed41dec..0ce7ed090e483e60e325b3ca1e41e327ae90aaa0 100755 (executable)
@@ -121,7 +121,7 @@ if [ "$PROTO" = "socks" ]; then
        if [ -z "$PORT" ]; then
                PORT="1080"
        fi
-       METHOD="SOCKS4:$PROXY:$1:$2,socksport=$PORT"
+       METHOD="SOCKS4A:$PROXY:$1:$2,socksport=$PORT"
 else
        # Assume PROXY (http, https, etc)
        if [ -z "$PORT" ]; then