build(docker): ignore ipv6 for NAT_IP_AUTO

This commit is contained in:
Adam Uhlíř 2026-01-29 14:43:59 +01:00
parent 9ab8e1d671
commit 662b9ce61e
No known key found for this signature in database
GPG Key ID: 0CBD7AA7B5A72FED

View File

@ -63,7 +63,7 @@ fi
# Parameters
if [[ -z "${STORAGE_NAT}" ]]; then
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
export STORAGE_NAT="extip:$(hostname --ip-address)"
export STORAGE_NAT="extip:$(hostname --ip-address | grep --color=never -oE '([0-9]{1,3}\.){3}[0-9]{1,3}')"
elif [[ -n "${NAT_PUBLIC_IP_AUTO}" ]]; then
# Run for 60 seconds if fail
WAIT=120