build(docker): ignore ipv6 for NAT_IP_AUTO (#1393)

This commit is contained in:
Adam Uhlíř 2026-01-30 09:41:28 +01:00 committed by GitHub
parent 9ab8e1d671
commit c6345fd6f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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