mirror of
https://github.com/luxfi/geth.git
synced 2026-10-30 15:05:39 +00:00
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 <[email protected]>
6 lines
283 B
Bash
Executable File
6 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
|
|
rm -f stun-list.txt
|
|
curl https://raw.githubusercontent.com/pradt2/always-online-stun/refs/heads/master/valid_ipv4s.txt | sort -n >> stun-list.txt
|
|
curl https://raw.githubusercontent.com/pradt2/always-online-stun/refs/heads/master/valid_ipv6s.txt | sort -n >> stun-list.txt
|