mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
publish through tunnels in case of restricted routes
This commit is contained in:
parent
0fae04f96a
commit
03635f4444
@ -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…
Reference in New Issue
Block a user