summaryrefslogtreecommitdiffstats
path: root/scripts/oe-git-proxy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-xscripts/oe-git-proxy7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index b971c88ec5..d2e9f925b7 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -120,11 +120,16 @@ if [ "$PORT" = "$ALL_PROXY" ]; then
120 PORT="" 120 PORT=""
121fi 121fi
122 122
123if [ "$PROTO" = "socks" ]; then 123if [ "$PROTO" = "socks" ] || [ "$PROTO" = "socks4a" ]; then
124 if [ -z "$PORT" ]; then 124 if [ -z "$PORT" ]; then
125 PORT="1080" 125 PORT="1080"
126 fi 126 fi
127 METHOD="SOCKS4A:$PROXY:$1:$2,socksport=$PORT" 127 METHOD="SOCKS4A:$PROXY:$1:$2,socksport=$PORT"
128elif [ "$PROTO" = "socks4" ]; then
129 if [ -z "$PORT" ]; then
130 PORT="1080"
131 fi
132 METHOD="SOCKS4:$PROXY:$1:$2,socksport=$PORT"
128else 133else
129 # Assume PROXY (http, https, etc) 134 # Assume PROXY (http, https, etc)
130 if [ -z "$PORT" ]; then 135 if [ -z "$PORT" ]; then