Update entrypoint.sh

This commit is contained in:
kant777 2024-01-13 03:32:38 -08:00 committed by GitHub
parent 0a869b40b0
commit e75c17b642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"