mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-10 16:37:54 +00:00
start addressbook first
This commit is contained in:
parent
3053a9b6a0
commit
094d9193b9
@ -37,6 +37,8 @@ namespace client
|
|||||||
m_SharedLocalDestination->Start ();
|
m_SharedLocalDestination->Start ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_AddressBook.Start ();
|
||||||
|
|
||||||
std::shared_ptr<ClientDestination> localDestination;
|
std::shared_ptr<ClientDestination> localDestination;
|
||||||
bool httproxy; i2p::config::GetOption("httpproxy.enabled", httproxy);
|
bool httproxy; i2p::config::GetOption("httpproxy.enabled", httproxy);
|
||||||
if (httproxy) {
|
if (httproxy) {
|
||||||
@ -94,25 +96,19 @@ namespace client
|
|||||||
m_BOBCommandChannel = new BOBCommandChannel (bobAddr, bobPort);
|
m_BOBCommandChannel = new BOBCommandChannel (bobAddr, bobPort);
|
||||||
m_BOBCommandChannel->Start ();
|
m_BOBCommandChannel->Start ();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_AddressBook.Start ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientContext::Stop ()
|
void ClientContext::Stop ()
|
||||||
{
|
{
|
||||||
if (m_HttpProxy) {
|
|
||||||
LogPrint(eLogInfo, "Clients: stopping HTTP Proxy");
|
LogPrint(eLogInfo, "Clients: stopping HTTP Proxy");
|
||||||
m_HttpProxy->Stop();
|
m_HttpProxy->Stop();
|
||||||
delete m_HttpProxy;
|
delete m_HttpProxy;
|
||||||
m_HttpProxy = nullptr;
|
m_HttpProxy = nullptr;
|
||||||
}
|
|
||||||
|
|
||||||
if (m_SocksProxy) {
|
|
||||||
LogPrint(eLogInfo, "Clients: stopping SOCKS Proxy");
|
LogPrint(eLogInfo, "Clients: stopping SOCKS Proxy");
|
||||||
m_SocksProxy->Stop();
|
m_SocksProxy->Stop();
|
||||||
delete m_SocksProxy;
|
delete m_SocksProxy;
|
||||||
m_SocksProxy = nullptr;
|
m_SocksProxy = nullptr;
|
||||||
}
|
|
||||||
|
|
||||||
for (auto& it: m_ClientTunnels)
|
for (auto& it: m_ClientTunnels)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user