We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75c17b commit 3ce0effCopy full SHA for 3ce0eff
geth-poa/entrypoint.sh
@@ -43,17 +43,19 @@ fi
43
44
# Obtain assigned container IP for p2p
45
NODE_IP=${NODE_IP:-$(hostname -i)}
46
+echo "NODE_IP is set to: $NODE_IP"
47
+
48
+PUBLIC_NODE_IP=${PUBLIC_NODE_IP:-""}
49
+echo "EXTERNAL_NODE_IP is set to: $PUBLIC_NODE_IP"
50
-if [ -n "${PUBLIC_NODE_IP:-}" ]; then
51
+# Set NAT_FLAG based on whether PUBLIC_NODE_IP is empty or not
52
+if [ -n "$PUBLIC_NODE_IP" ]; then
53
NAT_FLAG="--nat=extip:$PUBLIC_NODE_IP"
54
else
55
NAT_FLAG="--nat=none"
56
fi
57
-
58
# (Optional) Echo the values for verification
-echo "NODE_IP is set to: $NODE_IP"
-echo "EXTERNAL_NODE_IP is set to: $PUBLIC_NODE_IP"
59
60
if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
61
echo "Starting bootnode"
0 commit comments