Skip to content

Commit

Permalink
server: Fix incorrect log message format
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose authored and jcvernaleo committed Mar 5, 2020
1 parent 1d0bfca commit 9e94ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1221,15 +1221,15 @@ func (sp *serverPeer) OnGetAddr(_ *peer.Peer, msg *wire.MsgGetAddr) {
// Do not accept getaddr requests from outbound peers. This reduces
// fingerprinting attacks.
if !sp.Inbound() {
peerLog.Debugf("Ignoring getaddr request from outbound peer ",
peerLog.Debugf("Ignoring getaddr request from outbound peer "+
"%v", sp)
return
}

// Only allow one getaddr request per connection to discourage
// address stamping of inv announcements.
if sp.sentAddrs {
peerLog.Debugf("Ignoring repeated getaddr request from peer ",
peerLog.Debugf("Ignoring repeated getaddr request from peer "+
"%v", sp)
return
}
Expand Down

0 comments on commit 9e94ccb

Please sign in to comment.