tunnels reload changes: fix tcp tunnels reload

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2021-09-03 23:25:47 +03:00
parent 349022ae42
commit 6b1ef6e1b9
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
4 changed files with 100 additions and 55 deletions

View file

@ -303,7 +303,7 @@ namespace client
m_ProxyConnectionSent = true;
}
else
m_OutHeader << line << "\n";
m_OutHeader << line << "\n";
}
}
else
@ -888,7 +888,8 @@ namespace client
LogPrint(eLogInfo, "UDPServer: done");
}
void I2PUDPServerTunnel::Start() {
void I2PUDPServerTunnel::Start()
{
m_LocalDest->Start();
}
@ -1064,8 +1065,9 @@ namespace client
else
LogPrint(eLogWarning, "UDP Client: not tracking udp session using port ", (int) toPort);
}
I2PUDPClientTunnel::~I2PUDPClientTunnel() {
I2PUDPClientTunnel::~I2PUDPClientTunnel()
{
auto dgram = m_LocalDest->GetDatagramDestination();
if (dgram) dgram->ResetReceiver();