server: Fix incorrect log message format

This commit is contained in:
Steven Roose 2018-03-16 09:12:18 +01:00 committed by John C. Vernaleo
parent 1d0bfca5b0
commit 9e94ccbd0e

View file

@ -1221,7 +1221,7 @@ 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
}
@ -1229,7 +1229,7 @@ func (sp *serverPeer) OnGetAddr(_ *peer.Peer, msg *wire.MsgGetAddr) {
// 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
}