go-pulse/p2p
Martin Holst Swende 7a5a822905
eth, p2p: use truncated names (#21698)
* peer: return localAddr instead of name to prevent spam

We currently use the name (which can be freely set by the peer) in several log messages.
This enables malicious actors to write spam into your geth log.
This commit returns the localAddr instead of the freely settable name.

* p2p: reduce usage of peer.Name in warn messages

* eth, p2p: use truncated names

* Update peer.go

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Felix Lange <fjl@twurst.com>
2020-10-13 13:28:24 +02:00
..
discover p2p/discover: remove use of shared hash instance for key derivation (#21673) 2020-10-08 11:19:54 +02:00
discv5
dnsdisc
enode p2p/enode: remove unused code (#21612) 2020-09-28 20:10:11 +02:00
enr
nat p2p/nat: limit UPNP request concurrency (#21390) 2020-08-05 09:51:37 +02:00
netutil
nodestate p2p/nodestate: ensure correct callback order (#21436) 2020-09-14 14:01:18 +02:00
rlpx p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
simulations
dial_test.go
dial.go
message_test.go p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
message.go
metrics.go
peer_error.go
peer_test.go p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
peer.go eth, p2p: use truncated names (#21698) 2020-10-13 13:28:24 +02:00
protocol.go
server_test.go p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
server.go eth, p2p: use truncated names (#21698) 2020-10-13 13:28:24 +02:00
transport_test.go p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
transport.go p2p: move rlpx into separate package (#21464) 2020-09-22 10:17:39 +02:00
util_test.go
util.go