Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p: support configuring NAT in TOML file #31041

Merged
merged 5 commits into from
Jan 22, 2025
Merged

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Jan 17, 2025

This is an alternative for #27407 with a solution based on gencodec. With the PR, one can now configure like this:

# config.toml
[Node.P2P]
NAT = "extip:33.33.33.33"
$ geth --config config.toml
...
INFO [01-17|16:37:31.436] Started P2P networking      self=enode://[email protected]:30303

p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
p2p/config.go Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
rjl493456442
rjl493456442 previously approved these changes Jan 21, 2025
@fjl fjl merged commit 218b697 into ethereum:master Jan 22, 2025
3 checks passed
@fjl fjl modified the milestones: 1.14.13, 1.15.0 Jan 22, 2025
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.

3 participants