Browse Source

publish through tunnels in case of restricted routes

pull/2072/head
orignal 7 months ago
parent
commit
03635f4444
  1. 5
      libi2pd/RouterContext.cpp

5
libi2pd/RouterContext.cpp

@ -1384,8 +1384,9 @@ namespace i2p
if (m_Service) if (m_Service)
m_Service->GetService ().post ([this]() { HandlePublishResendTimer (boost::system::error_code ()); }); m_Service->GetService ().post ([this]() { HandlePublishResendTimer (boost::system::error_code ()); });
}; };
if (floodfill->IsReachableFrom (i2p::context.GetRouterInfo ()) || // are we able to connect? if (i2p::transport::transports.IsConnected (floodfill->GetIdentHash ()) || // already connected
i2p::transport::transports.IsConnected (floodfill->GetIdentHash ())) // already connected ? (floodfill->IsReachableFrom (i2p::context.GetRouterInfo ()) && // are we able to connect
!i2p::transport::transports.RoutesRestricted ())) // and routes not restricted
{ {
// send directly // send directly
auto msg = CreateDatabaseStoreMsg (i2p::context.GetSharedRouterInfo (), replyToken); auto msg = CreateDatabaseStoreMsg (i2p::context.GetSharedRouterInfo (), replyToken);

Loading…
Cancel
Save