Skip to content

Commit

Permalink
DoS protection: Don't announce non-peer CNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed May 20, 2014
1 parent c8cbded commit 032c48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class CNode
setInventoryKnown.max_size(SendBufferSize() / 1000);

// Be shy and don't send version until we hear
if (!fInbound)
if (hSocket != INVALID_SOCKET && !fInbound)
PushVersion();
}

Expand Down

0 comments on commit 032c48c

Please sign in to comment.