plugeth/p2p
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
..
discover p2p: add 0 port check in dialer (#21008) 2020-05-11 18:11:17 +03:00
discv5 build: upgrade to golangci-lint 1.24.0 (#20901) 2020-04-08 11:07:29 +03:00
dnsdisc p2p/dnsdisc: re-check tree root when leaf resolution fails (#20682) 2020-02-17 15:23:25 +01:00
enode p2p/enode: update code comment (#20972) 2020-04-24 16:50:03 +02:00
enr
nat
netutil p2p/netutil: fix staticcheck warning (#20315) 2019-11-19 11:17:41 +02:00
simulations p2p: add 0 port check in dialer (#21008) 2020-05-11 18:11:17 +03:00
testing p2p/discv5, p2p/testing: add missing Timer.Stop calls in tests (#20869) 2020-04-02 16:03:40 +02:00
dial_test.go p2p: new dial scheduler (#20592) 2020-02-13 11:10:03 +01:00
dial.go p2p: add 0 port check in dialer (#21008) 2020-05-11 18:11:17 +03:00
message_test.go
message.go
metrics.go p2p: remove MeteredPeerEvent (#20679) 2020-02-17 13:22:14 +02:00
peer_error.go
peer_test.go p2p: new dial scheduler (#20592) 2020-02-13 11:10:03 +01:00
peer.go p2p: defer wait group done in protocol start (#20951) 2020-04-21 16:42:18 +02:00
protocol.go
rlpx_test.go
rlpx.go p2p: remove MeteredPeerEvent (#20679) 2020-02-17 13:22:14 +02:00
server_test.go all: fix goroutine leaks in unit tests by adding 1-elem channel buffer (#20666) 2020-02-17 17:33:11 +01:00
server.go p2p/server: add UDP port mapping goroutine to wait group (#20846) 2020-04-01 18:00:33 +02:00
util_test.go p2p: new dial scheduler (#20592) 2020-02-13 11:10:03 +01:00
util.go p2p: new dial scheduler (#20592) 2020-02-13 11:10:03 +01:00