Browse Source

don't send I2P address to clearnet peers

pull/26/head
orignal 7 years ago
parent
commit
a2fd956c41
  1. 4
      src/net.h

4
src/net.h

@ -226,8 +226,8 @@ public: @@ -226,8 +226,8 @@ public:
std::multimap<int64, CInv> 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;

Loading…
Cancel
Save