Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions consensus-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ until [ "$(curl -s --max-time 10 --connect-timeout 5 -w '%{http_code}' -o /dev/n
sleep 5
done

if PUBLIC_IP=$(get_public_ip); then
if [[ -n "${BASE_NODE_P2P_ADVERTISE_IP:-}" ]]; then
echo "Using operator-provided BASE_NODE_P2P_ADVERTISE_IP: $BASE_NODE_P2P_ADVERTISE_IP"
elif PUBLIC_IP=$(get_public_ip); then
echo "fetched public IP is: $PUBLIC_IP"
export BASE_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP
else
echo "Could not retrieve public IP."
exit 8
fi
export BASE_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP

echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"

Expand Down