Felix Lange 6f54ae24cd
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-11 18:11:17 +03:00
..
2019-11-18 10:49:17 +02:00
2020-02-13 11:10:03 +01:00
2016-04-15 11:17:27 +02:00
2020-02-13 11:10:03 +01:00
2020-02-17 13:22:14 +02:00
2020-02-13 11:10:03 +01:00
2020-02-13 11:10:03 +01:00