From b2c2d2e2570ca199268f5ee1c27f1120927e297c Mon Sep 17 00:00:00 2001 From: Esa Jokinen Date: Sun, 29 Sep 2024 00:42:06 +0300 Subject: [PATCH] http-dns-round-robin.sh: show curl errors --- bin/http-dns-round-robin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/http-dns-round-robin.sh b/bin/http-dns-round-robin.sh index 6c75399..67fce47 100755 --- a/bin/http-dns-round-robin.sh +++ b/bin/http-dns-round-robin.sh @@ -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"