go-ethereum/p2p/enr
Felix Lange be1e580459
p2p/enode: fix endpoint determination for IPv6 (#29801)
enode.Node has separate accessor functions for getting the IP, UDP port and TCP port.
These methods performed separate checks for attributes set in the ENR.

With this PR, the accessor methods will now return cached information, and the endpoint is
determined when the node is created. The logic to determine the preferred endpoint is now
more correct, and considers how 'global' each address is when both IPv4 and IPv6 addresses
are present in the ENR.
2024-06-11 14:51:57 +05:30
..
enr.go dev: fix: most of wsl lint issues 2023-06-15 15:48:26 +02:00
enr_test.go dev: fix: most of wsl lint issues 2023-06-15 15:48:26 +02:00
entries.go p2p/enode: fix endpoint determination for IPv6 (#29801) 2024-06-11 14:51:57 +05:30