mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-01 12:13:09 +00:00
build(docker): ignore ipv6 for NAT_IP_AUTO (#1393)
This commit is contained in:
parent
9ab8e1d671
commit
c6345fd6f7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user