1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 08:24:20 +00:00

don't send I2P address to clearnet peers

This commit is contained in:
orignal 2017-10-03 19:59:41 -04:00
parent 818f4dfb8a
commit a2fd956c41

View File

@ -226,8 +226,8 @@ public:
std::multimap<int64, CInv> mapAskFor; std::multimap<int64, CInv> mapAskFor;
CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) 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)) , nSendStreamType(SER_NETWORK | (addrIn.IsNativeI2P() ? 0 : SER_IPADDRONLY))
, nRecvStreamType(SER_NETWORK | (((addrIn.nServices & NODE_I2P) || addrIn.IsNativeI2P()) ? 0 : SER_IPADDRONLY)) , nRecvStreamType(SER_NETWORK | (addrIn.IsNativeI2P() ? 0 : SER_IPADDRONLY))
{ {
ssSend.SetType(nSendStreamType); ssSend.SetType(nSendStreamType);
nServices = 0; nServices = 0;