We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a958cb commit 124dd30Copy full SHA for 124dd30
healthcheck.sh
@@ -3,5 +3,7 @@
3
if [ "$BIND_ADDRESS" != "*" ]; then
4
nc -z "$BIND_ADDRESS" "$HAPROXY_PORT" || exit 1
5
else
6
- nc -z localhost "$HAPROXY_PORT" || exit 1
+ if ! nc -z "127.0.0.1" "$HAPROXY_PORT" && ! nc -z "::1" "$HAPROXY_PORT"; then
7
+ exit 1
8
+ fi
9
fi
0 commit comments