Ignore getaddr messages on Outbound connections. 251/head
authorIvan Pustogarov <ivanpustogarov@users.noreply.github.com>
Sun, 7 Dec 2014 16:30:57 +0000 (17:30 +0100)
committersvost <ya.nowa@yandex.ru>
Wed, 14 Oct 2015 08:29:48 +0000 (11:29 +0300)
commitf52c581475d6e701748f91480301354860c7c8c6
tree09c3985e4acf50840111a0b7145f81e3bc948053
parentb6a87e6d6367ad7d3cdd9aeea7a93aa0ad075582
Ignore getaddr messages on Outbound connections.

The only time when a client sends a "getaddr" message is when he
esatblishes an Outbound connection (see ProcessMessage() in
src/main.cpp).  Another bitcoin client is expected to receive a
"getaddr" message only on Inbound connection. Ignoring "gettaddr"
requests on Outbound connections can resolve potential privacy issues
(and as was said such request normally do not happen anyway).

Rebased-From: dca799e1db6e319fdd47e0bfdb038eab0efabb85
Github-Pull: #5442
src/main.cpp