Skip to content

fix: respect BASE_NODE_P2P_ADVERTISE_IP environment variable (#1107)#1137

Open
shinobi133 wants to merge 1 commit into
base:mainfrom
shinobi133:fix/issue-1107-p2p-ip-override
Open

fix: respect BASE_NODE_P2P_ADVERTISE_IP environment variable (#1107)#1137
shinobi133 wants to merge 1 commit into
base:mainfrom
shinobi133:fix/issue-1107-p2p-ip-override

Conversation

@shinobi133

@shinobi133 shinobi133 commented Jun 20, 2026

Copy link
Copy Markdown

Addresses a bug where consensus-entrypoint completely overrides any manually configured public IP and exits if automated discovery fails.

Changes

  • Wrapped the get_public_ip discovery logic in a guard check.
  • Script now respects an explicitly set BASE_NODE_P2P_ADVERTISE_IP environment variable.
  • Prevents container crashes/exits if external discovery providers fail or are unreachable, provided the IP was already passed.

Fixes #1107

Prevents public IP discovery from overriding an explicitly set BASE_NODE_P2P_ADVERTISE_IP and stops the container from exiting if discovery fails when the IP is already provided.
@cb-heimdall

cb-heimdall commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

consensus-entrypoint always overrides BASE_NODE_P2P_ADVERTISE_IP and exits if public IP discovery fails

2 participants