Skip to content

Commit

Permalink
http-dns-round-robin.sh: show curl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Sep 28, 2024
1 parent d3a0d11 commit b2c2d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/http-dns-round-robin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ fi
while read -r ip
do
echo "[${ip}]:${PORT}"
curl --resolve "${HOSTNAME}:${PORT}:[${ip}]" --silent --head "$URL"
curl --resolve "${HOSTNAME}:${PORT}:[${ip}]" \
--no-progress-meter --head "$URL"
done <<< "$(
dig +short "$HOSTNAME" A | grep -E -o "$IPADDR"
dig +short "$HOSTNAME" AAAA | grep -E -o "$IPADDR"
Expand Down

0 comments on commit b2c2d2e

Please sign in to comment.