mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01: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?
|
||||
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
|
||||
auto msg = dest->CreateRequestMessage (r, dest->GetLastReplyTunnel ());
|
||||
|
|
|
@ -142,6 +142,13 @@ namespace i2p
|
|||
session = new i2p::ntcp::NTCPClient (m_Service, address->host.c_str (), address->port, *r);
|
||||
AddNTCPSession (session);
|
||||
}
|
||||
else
|
||||
LogPrint ("No NTCP addresses available");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint ("Router not found. Requested");
|
||||
i2p::data::netdb.RequestDestination (ident);
|
||||
}
|
||||
}
|
||||
if (session)
|
||||
|
|
Loading…
Reference in a new issue