|
|
@ -100,15 +100,21 @@ namespace client |
|
|
|
|
|
|
|
|
|
|
|
void ClientContext::Stop () |
|
|
|
void ClientContext::Stop () |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint(eLogInfo, "Clients: stopping HTTP Proxy"); |
|
|
|
if (m_HttpProxy) |
|
|
|
m_HttpProxy->Stop(); |
|
|
|
{ |
|
|
|
delete m_HttpProxy; |
|
|
|
LogPrint(eLogInfo, "Clients: stopping HTTP Proxy"); |
|
|
|
m_HttpProxy = nullptr; |
|
|
|
m_HttpProxy->Stop(); |
|
|
|
|
|
|
|
delete m_HttpProxy; |
|
|
|
|
|
|
|
m_HttpProxy = nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LogPrint(eLogInfo, "Clients: stopping SOCKS Proxy"); |
|
|
|
if (m_SocksProxy) |
|
|
|
m_SocksProxy->Stop(); |
|
|
|
{ |
|
|
|
delete m_SocksProxy; |
|
|
|
LogPrint(eLogInfo, "Clients: stopping SOCKS Proxy"); |
|
|
|
m_SocksProxy = nullptr; |
|
|
|
m_SocksProxy->Stop(); |
|
|
|
|
|
|
|
delete m_SocksProxy; |
|
|
|
|
|
|
|
m_SocksProxy = nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (auto& it: m_ClientTunnels) |
|
|
|
for (auto& it: m_ClientTunnels) |
|
|
|
{ |
|
|
|
{ |
|
|
|