Skip to content

Commit

Permalink
explicitly call for IPv4 when using getent
Browse files Browse the repository at this point in the history
  • Loading branch information
sfo authored May 16, 2024
1 parent fe64d95 commit 3c4a07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ else
fi

# Attempt to resolve BEASTHOST into an IP address
if BEASTIP=$(getent ahosts "$BEASTHOST" | grep "$BEASTHOST" 2> /dev/null | cut -d ' ' -f 1); then
if BEASTIP=$(getent ahostsv4 "$BEASTHOST" | grep "$BEASTHOST" 2> /dev/null | cut -d ' ' -f 1); then
:
#echo "got host via getent"
elif BEASTIP=$(s6-dnsip4 "$BEASTHOST" 2> /dev/null); then
Expand Down

0 comments on commit 3c4a07c

Please sign in to comment.