go-ethereum/p2p/nat
Felix Lange 218b697f05
p2p: support configuring NAT in TOML file (#31041)
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"
```

```shell
$ geth --config config.toml
...
INFO [01-17|16:37:31.436] Started P2P networking      self=enode://2290...ab@33.33.33.33:30303
```
2025-01-22 09:29:34 +01:00
..
nat.go p2p: support configuring NAT in TOML file (#31041) 2025-01-22 09:29:34 +01:00
nat_test.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
natpmp.go p2p: support configuring NAT in TOML file (#31041) 2025-01-22 09:29:34 +01:00
natupnp.go p2p/nat: fix typos in comments (#29536) 2024-04-15 14:58:17 +02:00
natupnp_test.go all: replace strings.Replace with string.ReplaceAll (#24835) 2022-05-09 13:13:23 +03:00