mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 10:42:35 +00:00
Merge pull request #2584 from pobregat0/udp-tunnel-isupdated
Init isUpdated in UDP tunnels
This commit is contained in:
1 file changed
+4
-2
@@ -468,7 +468,8 @@ namespace client
|
||||
I2PUDPServerTunnel::I2PUDPServerTunnel (const std::string & name, std::shared_ptr<i2p::client::ClientDestination> localDestination,
|
||||
const boost::asio::ip::address& localAddress, const boost::asio::ip::udp::endpoint& forwardTo, uint16_t inPort, bool gzip) :
|
||||
m_IsUniqueLocal (true), m_Name (name), m_LocalAddress (localAddress),
|
||||
m_RemoteEndpoint (forwardTo), m_LocalDest (localDestination), m_inPort(inPort), m_Gzip (gzip)
|
||||
m_RemoteEndpoint (forwardTo), m_LocalDest (localDestination), m_inPort(inPort), m_Gzip (gzip),
|
||||
isUpdated (true)
|
||||
{
|
||||
// without a reference the destination counts as unused and a config reload
|
||||
// stops it, leaving the tunnel with a destination that receives nothing
|
||||
@@ -602,7 +603,8 @@ namespace client
|
||||
UDPConnection (localDestination->GetService (), localDestination->GetDatagramDestination ()),
|
||||
m_Name (name), m_RemoteDest (remoteDest), m_LocalDest (localDestination), m_LocalEndpoint (localEndpoint),
|
||||
m_ResolveThread (nullptr), m_LocalSocket (nullptr), RemotePort (remotePort),
|
||||
m_LastPort (0), m_cancel_resolve (false), m_Gzip (gzip), m_DatagramVersion (datagramVersion)
|
||||
m_LastPort (0), m_cancel_resolve (false), m_Gzip (gzip), m_DatagramVersion (datagramVersion),
|
||||
isUpdated (true)
|
||||
{
|
||||
if (m_LocalDest) m_LocalDest->Acquire ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user