erigon-pulse/p2p
Martin Holst Swende 926cc78870 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-26 17:16:00 +01:00
..
discover p2p/discover: remove use of shared hash instance for key derivation (#21673) 2020-10-26 17:16:00 +01:00
discv5 kill bolt (#1085) 2020-09-09 11:09:55 +01:00
dnsdisc all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
enode p2p/enode: remove unused code (#21612) 2020-10-26 17:16:00 +01:00
enr Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
nat linters 2020-08-15 22:29:04 +02:00
netutil p2p/netutil: fix staticcheck warning (#20315) 2019-12-03 13:41:34 +01:00
rlpx post-rebase fixes 2020-10-06 14:12:09 +02:00
simulations Fixes 'too many other files opened' problem with Generate Storage History stage on Mac (#1217) 2020-10-10 22:15:07 +01:00
dial_test.go p2p: new dial scheduler (#20592) 2020-02-27 17:21:20 +03:00
dial.go Jump tables data race (#1245) 2020-10-20 22:23:56 +01:00
message_test.go p2p: move rlpx into separate package (#21464) 2020-10-06 14:12:09 +02:00
message.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
metrics.go post-merge fixups 2020-02-27 17:22:25 +03:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go p2p: move rlpx into separate package (#21464) 2020-10-06 14:12:09 +02:00
peer.go eth, p2p: use truncated names (#21698) 2020-10-26 17:16:00 +01:00
protocol.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-12-03 13:08:33 +01:00
server_test.go post-rebase fixes 2020-10-06 14:12:09 +02:00
server.go eth, p2p: use truncated names (#21698) 2020-10-26 17:16:00 +01:00
transport_test.go post-rebase fixes 2020-10-06 14:12:09 +02:00
transport.go post-rebase fixes 2020-10-06 14:12:09 +02:00
util_test.go post-merge fixups 2020-02-27 17:22:25 +03:00
util.go post-merge fixups 2020-02-27 17:22:25 +03:00