File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21959,11 +21959,14 @@ check_proxy() {
2195921959 [[ -z "$PROXY" ]] && PROXY="${http_proxy#*\/\/}"
2196021960 [[ -z "$PROXY" ]] && fatal "you specified \"--proxy=auto\" but \"\$http(s)_proxy\" is empty" $ERR_CMDLINE
2196121961 fi
21962- # strip off http/https part if supplied:
21962+ # strip http/https part if supplied:
2196321963 PROXY="${PROXY/http\:\/\//}"
2196421964 PROXY="${PROXY/https\:\/\//}" # this shouldn't be needed
2196521965 PROXYPORT="${PROXY##*:}"
2196621966 PROXYNODE="${PROXY%:*}"
21967+ # strip square brackets in IPv6 notation, but we may enter them later
21968+ PROXYNODE="${PROXYNODE/\[/}"
21969+ PROXYNODE="${PROXYNODE/\]/}"
2196721970 is_number "$PROXYPORT" || fatal "Proxy port cannot be determined from \"$PROXY\"" $ERR_CMDLINE
2196821971
2196921972 #FIXME: finish IPv6 proxy support, see #1105.
You can’t perform that action at this time.
0 commit comments