Skip to content

Commit

Permalink
http-dns-round-robin.sh fix curl resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Sep 28, 2024
1 parent 48732e1 commit d3a0d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/http-dns-round-robin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d3a0d11

Please sign in to comment.