erigon-pulse/p2p/simulations/adapters
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
..
exec.go event, p2p/simulations/adapters: fix rare goroutine leaks (#20657) 2020-02-27 17:21:20 +03:00
inproc_test.go p2p/simulations: fix staticcheck warnings (#20322) 2019-12-03 13:44:24 +01:00
inproc.go p2p: new dial scheduler (#20592) 2020-02-27 17:21:20 +03:00
types.go p2p: add 0 port check in dialer (#21008) 2020-05-20 15:26:22 +03:00