bitcoin/bitcoin — pull request #2595 by sipa (2013-04-30 14:23:21+00:00)
Title: Don't announce to non-peer CNodes

This is a very minor bug: we tried to send out a "version" message in CNode's constructor, which meant also for pnodeLocalHost, causing a "socket send error 9" under Linux or "socket send error 10038" in Windows.

Fixes #2587