mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
request and handle LeaseSets through local destination only
This commit is contained in:
parent
46ea2291fe
commit
3547a4042c
7 changed files with 173 additions and 14 deletions
|
@ -1,6 +1,5 @@
|
|||
#include "base64.h"
|
||||
#include "Log.h"
|
||||
#include "NetDb.h"
|
||||
#include "Destination.h"
|
||||
#include "ClientContext.h"
|
||||
#include "I2PTunnel.h"
|
||||
|
@ -214,7 +213,7 @@ namespace client
|
|||
CreateConnection (socket);
|
||||
else
|
||||
{
|
||||
i2p::data::netdb.RequestDestination (*m_DestinationIdentHash, true, GetLocalDestination ()->GetTunnelPool ());
|
||||
GetLocalDestination ()->RequestDestination (*m_DestinationIdentHash);
|
||||
m_Timer.expires_from_now (boost::posix_time::seconds (I2P_TUNNEL_DESTINATION_REQUEST_TIMEOUT));
|
||||
m_Timer.async_wait (std::bind (&I2PClientTunnel::HandleDestinationRequestTimer,
|
||||
this, std::placeholders::_1, socket));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue