diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-04-11 01:09:34 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2016-04-11 01:09:34 +0000 |
commit | 66b07247a7a9e48e082502338176cc06edf61474 (patch) | |
tree | 3ebcc514aeed59dcb78829228b29bc3ded4757bc /src/net.cpp | |
parent | 065c6b443f3e9864b1b4231208b49e3cef99cef3 (diff) |
Only send one GetAddr response per connection.
This conserves resources from abusive peers that just send
getaddr in a loop. Also makes correlating addr messages
against INVs less effective.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index e8cc753a48..77310fb162 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2384,6 +2384,7 @@ CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNa nNextAddrSend = 0; nNextInvSend = 0; fRelayTxes = false; + fSentAddr = false; pfilter = new CBloomFilter(); nPingNonceSent = 0; nPingUsecStart = 0; |