mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-21 14:51:48 +02:00
I2CP option crypto.tagsToSend added for I2P tunnels
This commit is contained in:
parent
f545e6eb27
commit
f593802a51
5 changed files with 21 additions and 4 deletions
|
@ -546,7 +546,7 @@ namespace garlic
|
|||
std::shared_ptr<I2NPMessage> GarlicDestination::WrapMessage (std::shared_ptr<const i2p::data::RoutingDestination> destination,
|
||||
std::shared_ptr<I2NPMessage> msg, bool attachLeaseSet)
|
||||
{
|
||||
auto session = GetRoutingSession (destination, attachLeaseSet); // 32 tags by default
|
||||
auto session = GetRoutingSession (destination, attachLeaseSet);
|
||||
return session->WrapSingleMessage (msg);
|
||||
}
|
||||
|
||||
|
@ -560,7 +560,7 @@ namespace garlic
|
|||
if (!session)
|
||||
{
|
||||
session = std::make_shared<GarlicRoutingSession> (this, destination,
|
||||
attachLeaseSet ? 40 : 4, attachLeaseSet); // 40 tags for connections and 4 for LS requests
|
||||
attachLeaseSet ? m_NumTags : 4, attachLeaseSet); // specified num tags for connections and 4 for LS requests
|
||||
std::unique_lock<std::mutex> l(m_SessionsMutex);
|
||||
m_Sessions[destination->GetIdentHash ()] = session;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue