diff --git a/bin/http-dns-round-robin.sh b/bin/http-dns-round-robin.sh index b2b592b..6c75399 100755 --- a/bin/http-dns-round-robin.sh +++ b/bin/http-dns-round-robin.sh @@ -76,7 +76,7 @@ fi while read -r ip do echo "[${ip}]:${PORT}" - curl --resolve "[${HOSTNAME}]:${PORT}:${ip}" --silent --head "$URL" + curl --resolve "${HOSTNAME}:${PORT}:[${ip}]" --silent --head "$URL" done <<< "$( dig +short "$HOSTNAME" A | grep -E -o "$IPADDR" dig +short "$HOSTNAME" AAAA | grep -E -o "$IPADDR"