mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
request router if not found
This commit is contained in:
parent
d4d1c2f427
commit
5b025909b6
@ -347,7 +347,7 @@ namespace data
|
|||||||
// do we have that floodfill router in our database?
|
// do we have that floodfill router in our database?
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
if (!dest->IsExcluded (r->GetIdentHash ()) && dest->GetNumExcludedPeers () < 10) // TODO: fix TunnelGateway first
|
if (!dest->IsExcluded (r->GetIdentHash ()) && dest->GetNumExcludedPeers () < 30) // TODO: fix TunnelGateway first
|
||||||
{
|
{
|
||||||
// request destination
|
// request destination
|
||||||
auto msg = dest->CreateRequestMessage (r, dest->GetLastReplyTunnel ());
|
auto msg = dest->CreateRequestMessage (r, dest->GetLastReplyTunnel ());
|
||||||
|
@ -142,7 +142,14 @@ namespace i2p
|
|||||||
session = new i2p::ntcp::NTCPClient (m_Service, address->host.c_str (), address->port, *r);
|
session = new i2p::ntcp::NTCPClient (m_Service, address->host.c_str (), address->port, *r);
|
||||||
AddNTCPSession (session);
|
AddNTCPSession (session);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
LogPrint ("No NTCP addresses available");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LogPrint ("Router not found. Requested");
|
||||||
|
i2p::data::netdb.RequestDestination (ident);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (session)
|
if (session)
|
||||||
session->SendI2NPMessage (msg);
|
session->SendI2NPMessage (msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user