Browse Source

Merge pull request #1575 from dass79zh/ipv6less-curl-fix

Support curl compiled without IPv6 support.
pull/1585/head
bol-van 1 month ago
committed by GitHub
parent
commit
a1699067b3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      blockcheck.sh

6
blockcheck.sh

@ -635,7 +635,11 @@ curl_with_subst_ip()
# $2 - port
# $3 - ip
# $4+ - curl params
local connect_to="--connect-to $1::[$3]${2:+:$2}" arg
local ip="$3"
case "$ip" in
*:*) ip="[$ip]" ;;
esac
local connect_to="--connect-to $1::$ip${2:+:$2}" arg
shift ; shift ; shift
[ "$CURL_VERBOSE" = 1 ] && arg="-v"
[ "$CURL_CMD" = 1 ] && echo $CURL ${arg:+$arg }$connect_to "$@"

Loading…
Cancel
Save