diff options
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-x | scripts/oe-git-proxy | 7 |
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="" |
121 | fi | 121 | fi |
122 | 122 | ||
123 | if [ "$PROTO" = "socks" ]; then | 123 | if [ "$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" |
128 | elif [ "$PROTO" = "socks4" ]; then | ||
129 | if [ -z "$PORT" ]; then | ||
130 | PORT="1080" | ||
131 | fi | ||
132 | METHOD="SOCKS4:$PROXY:$1:$2,socksport=$PORT" | ||
128 | else | 133 | else |
129 | # Assume PROXY (http, https, etc) | 134 | # Assume PROXY (http, https, etc) |
130 | if [ -z "$PORT" ]; then | 135 | if [ -z "$PORT" ]; then |