From d1bc8e2e42d55ebdbf115203e6636f6885dc8ee2 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 5 Dec 2025 12:54:18 -0500 Subject: [PATCH] Fix IPv6 container start --- scripts/entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 7d4ceaa..146be81 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -26,9 +26,11 @@ eval $(./venv/bin/python ./scripts/print_args_env.py "$@") if [[ $LT_HOST == "127.0.0.1" ]]; then # Default BIND_ADDR="0.0.0.0" - IPV6_STATUS=$(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) - if [[ $IPV6_STATUS -eq 0 ]]; then - BIND_ADDR="[::]" + if [[ -f /proc/sys/net/ipv6/conf/all/disable_ipv6 ]]; then + IPV6_STATUS=$(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) + if [[ $IPV6_STATUS -eq 0 ]]; then + BIND_ADDR="[::]" + fi fi else BIND_ADDR="$LT_HOST"