From a2fd956c41ff1f0fc81c5c720e213d3e80be3cfe Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 3 Oct 2017 19:59:41 -0400 Subject: [PATCH] don't send I2P address to clearnet peers --- src/net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.h b/src/net.h index f70b865..5d955d8 100644 --- a/src/net.h +++ b/src/net.h @@ -226,8 +226,8 @@ public: std::multimap mapAskFor; CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) - , nSendStreamType(SER_NETWORK | (((addrIn.nServices & NODE_I2P) || addrIn.IsNativeI2P()) ? 0 : SER_IPADDRONLY)) - , nRecvStreamType(SER_NETWORK | (((addrIn.nServices & NODE_I2P) || addrIn.IsNativeI2P()) ? 0 : SER_IPADDRONLY)) + , nSendStreamType(SER_NETWORK | (addrIn.IsNativeI2P() ? 0 : SER_IPADDRONLY)) + , nRecvStreamType(SER_NETWORK | (addrIn.IsNativeI2P() ? 0 : SER_IPADDRONLY)) { ssSend.SetType(nSendStreamType); nServices = 0;