diff --git a/geth-poa/entrypoint.sh b/geth-poa/entrypoint.sh index bd75afab9e..b7bc421d5b 100644 --- a/geth-poa/entrypoint.sh +++ b/geth-poa/entrypoint.sh @@ -44,7 +44,7 @@ fi # Obtain assigned container IP for p2p NODE_IP=${NODE_IP:-$(hostname -i)} -if [ -n "$PUBLIC_NODE_IP" ]; then +if [ -n "${PUBLIC_NODE_IP:-}" ]; then NAT_FLAG="--nat=extip:$PUBLIC_NODE_IP" else NAT_FLAG="--nat=none"