mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 19:41:41 +00:00
send our router information with RI request only
This commit is contained in:
1 parent
ea9aa58471
commit
481b54a817
1 file changed
+10
-7
@@ -498,13 +498,16 @@ namespace data
|
||||
if (!dest->IsExcluded (r->GetIdentHash ()) && dest->GetNumExcludedPeers () < 30) // TODO: fix TunnelGateway first
|
||||
{
|
||||
LogPrint ("Try ", key, " at floodfill ", peerHash);
|
||||
// tell floodfill about us
|
||||
msgs.push_back (i2p::tunnel::TunnelMessageBlock
|
||||
{
|
||||
i2p::tunnel::eDeliveryTypeRouter,
|
||||
r->GetIdentHash (), 0,
|
||||
CreateDatabaseStoreMsg ()
|
||||
});
|
||||
if (!dest->IsLeaseSet ())
|
||||
{
|
||||
// tell floodfill about us
|
||||
msgs.push_back (i2p::tunnel::TunnelMessageBlock
|
||||
{
|
||||
i2p::tunnel::eDeliveryTypeRouter,
|
||||
r->GetIdentHash (), 0,
|
||||
CreateDatabaseStoreMsg ()
|
||||
});
|
||||
}
|
||||
// request destination
|
||||
auto msg = dest->CreateRequestMessage (r, inbound);
|
||||
msgs.push_back (i2p::tunnel::TunnelMessageBlock
|
||||
|
||||
Reference in new issue
Block a user