Skip to content

fix: add HOST_IP support to reth entrypoint#1117

Open
mehmetkr-31 wants to merge 1 commit into
base:mainfrom
mehmetkr-31:fix/reth-host-ip-support
Open

fix: add HOST_IP support to reth entrypoint#1117
mehmetkr-31 wants to merge 1 commit into
base:mainfrom
mehmetkr-31:fix/reth-host-ip-support

Conversation

@mehmetkr-31
Copy link
Copy Markdown

Adds HOST_IP support to the reth execution client entrypoint, completing parity with geth and nethermind.

Problem

The geth entrypoint has long supported HOST_IP via --nat=extip, and nethermind-entrypoint now supports it via --Network.ExternalIp. The reth entrypoint is the only execution client that ignores HOST_IP, causing reth operators running behind NAT to have degraded peer discovery and lower peer counts.

Solution

Add the same conditional check (if [ "${HOST_IP:+x}" = x ]) to the reth entrypoint and append --nat=extip:$HOST_IP to ADDITIONAL_ARGS.

The geth entrypoint already supports HOST_IP via --nat=extip, and the
nethermind entrypoint was recently updated to use --Network.ExternalIp.
However, the reth entrypoint ignores HOST_IP entirely, leaving reth
operators with poor peer discovery when running behind NAT.

Add the same conditional logic to pass --nat=extip when HOST_IP is set,
completing parity across all three supported execution clients.
@cb-heimdall
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 0
Sum 1

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.

2 participants