• Felix Lange's avatar
    p2p: add 0 port check in dialer (#21008) · 6f54ae24
    Felix Lange authored
    * 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
    6f54ae24
Name
Last commit
Last update
..
common.go Loading commit data...
lookup.go Loading commit data...
node.go Loading commit data...
ntp.go Loading commit data...
table.go Loading commit data...
table_test.go Loading commit data...
table_util_test.go Loading commit data...
v4_lookup_test.go Loading commit data...
v4_udp.go Loading commit data...
v4_udp_test.go Loading commit data...
v5_encoding.go Loading commit data...
v5_encoding_test.go Loading commit data...
v5_session.go Loading commit data...
v5_udp.go Loading commit data...
v5_udp_test.go Loading commit data...