keepaliveinterval for UDP client tunnel

This commit is contained in:
orignal
2026-07-07 15:19:23 -04:00
parent d381628843
commit ab78fae011
3 changed files with 45 additions and 0 deletions
+7
View File
@@ -680,6 +680,13 @@ namespace client
auto clientTunnel = std::make_shared<I2PUDPClientTunnel> (name, dest, end,
localDestination, destinationPort, gzip, (i2p::datagram::DatagramVersion)datagramVersion);
uint32_t keepAlive = section.second.get<uint32_t>(I2P_CLIENT_TUNNEL_KEEP_ALIVE_INTERVAL, 0);
if (keepAlive)
{
clientTunnel->SetKeepAliveInterval (keepAlive);
LogPrint(eLogInfo, "Clients: UDP Client tunnel keep alive interval set to ", keepAlive);
}
auto ins = m_ClientForwards.insert (std::make_pair (end, clientTunnel));
if (ins.second)
{