go-ethereum/p2p/nat
zhen peng 75526bb8e0
p2p/nat: add stun protocol (#31064)
This implements a basic mechanism to query the node's external IP using
a STUN server. There is a built-in list of public STUN servers for convenience.
The new detection mechanism must be selected explicitly using `--nat=stun` 
and is not enabled by default in Geth.

Fixes #30881

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2025-01-24 16:16:02 +01:00
..
nat.go p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01:00
nat_test.go p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01: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
stun-list-update.sh p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01:00
stun-list.txt p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01:00
stun.go p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01:00
stun_test.go p2p/nat: add stun protocol (#31064) 2025-01-24 16:16:02 +01:00