Skip to content

Commit

Permalink
corrected algo for "healthcheck" when HTTPS is used (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 authored Jun 11, 2024
1 parent 1a958cb commit 124dd30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
if [ "$BIND_ADDRESS" != "*" ]; then
nc -z "$BIND_ADDRESS" "$HAPROXY_PORT" || exit 1
else
nc -z localhost "$HAPROXY_PORT" || exit 1
if ! nc -z "127.0.0.1" "$HAPROXY_PORT" && ! nc -z "::1" "$HAPROXY_PORT"; then
exit 1
fi
fi

0 comments on commit 124dd30

Please sign in to comment.