erigon-pulse/p2p/discover
Felix Lange 698d5eb28e p2p: add 0 port check in dialer (#21008)
* p2p: add low port check in dialer

We already have a check like this for UDP ports, add a similar one in
the dialer. This prevents dials to port zero and it's also an extra
layer of protection against spamming HTTP servers.

* p2p/discover: use errLowPort in v4 code

* p2p: change port check

* p2p: add comment

* p2p/simulations/adapters: ensure assigned port is in all node records
2020-05-20 15:26:22 +03:00
..
common.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
lookup.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
node.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
ntp.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
table_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
table_util_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
table.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v4_lookup_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v4_udp_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v4_udp.go p2p: add 0 port check in dialer (#21008) 2020-05-20 15:26:22 +03:00
v5_encoding_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v5_encoding.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v5_session.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
v5_udp_test.go p2p/discover: add helper methods to UDPv5 (#20918) 2020-05-20 15:26:22 +03:00
v5_udp.go p2p/discover: add helper methods to UDPv5 (#20918) 2020-05-20 15:26:22 +03:00