i2cp.closeIdleTime and i2cp.newDestOnResume params for httpproxy and socksproxy

This commit is contained in:
orignal
2026-04-15 19:20:06 -04:00
parent eee36175e6
commit 3598cfdda0
2 changed files with 18 additions and 0 deletions
+14
View File
@@ -985,6 +985,13 @@ namespace client
{
m_HttpProxy = new i2p::proxy::HTTPProxy("HTTP Proxy", httpProxyAddr, httpProxyPort,
httpOutProxyURL, httpAddresshelper, httpSendUserAgent, localDestination);
uint64_t closeIdleTime; i2p::config::GetOption("httpproxy.i2cp.closeIdleTime", closeIdleTime);
if (closeIdleTime)
{
m_HttpProxy->SetCloseIdleTime(closeIdleTime);
bool newDestOnResume; i2p::config::GetOption("httpproxy.i2cp.newDestOnResume", newDestOnResume);
m_HttpProxy->SetNewDestOnResume(newDestOnResume);
}
m_HttpProxy->Start();
}
catch (std::exception& e)
@@ -1040,6 +1047,13 @@ namespace client
{
m_SocksProxy = new i2p::proxy::SOCKSProxy("SOCKS", socksProxyAddr, socksProxyPort,
socksOutProxy, socksOutProxyAddr, socksOutProxyPort, localDestination);
uint64_t closeIdleTime; i2p::config::GetOption("socksproxy.i2cp.closeIdleTime", closeIdleTime);
if (closeIdleTime)
{
m_SocksProxy->SetCloseIdleTime(closeIdleTime);
bool newDestOnResume; i2p::config::GetOption("socksproxy.i2cp.newDestOnResume", newDestOnResume);
m_SocksProxy->SetNewDestOnResume(newDestOnResume);
}
m_SocksProxy->Start();
}
catch (std::exception& e)