good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 7a5a8229 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub
Browse files

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: default avatarMarius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
parent 5c6155f9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment