mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-09 18:04:15 +00:00
osx fix
This commit is contained in:
parent
b1e3f88704
commit
47ebb6ae6c
@ -43,15 +43,6 @@ namespace client
|
|||||||
|
|
||||||
m_AddressBook.Start ();
|
m_AddressBook.Start ();
|
||||||
|
|
||||||
if ( m_ServiceThread == nullptr ) {
|
|
||||||
m_ServiceThread = new std::thread([&] () {
|
|
||||||
LogPrint(eLogInfo, "ClientContext: starting service");
|
|
||||||
m_Service.run();
|
|
||||||
LogPrint(eLogError, "ClientContext: service died");
|
|
||||||
});
|
|
||||||
ScheduleCleanupUDP();
|
|
||||||
}
|
|
||||||
|
|
||||||
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) {
|
||||||
@ -74,7 +65,7 @@ namespace client
|
|||||||
LogPrint(eLogError, "Clients: Exception in HTTP Proxy: ", e.what());
|
LogPrint(eLogError, "Clients: Exception in HTTP Proxy: ", e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool socksproxy; i2p::config::GetOption("socksproxy.enabled", socksproxy);
|
bool socksproxy; i2p::config::GetOption("socksproxy.enabled", socksproxy);
|
||||||
if (socksproxy) {
|
if (socksproxy) {
|
||||||
std::string socksProxyKeys; i2p::config::GetOption("socksproxy.keys", socksProxyKeys);
|
std::string socksProxyKeys; i2p::config::GetOption("socksproxy.keys", socksProxyKeys);
|
||||||
@ -100,6 +91,16 @@ namespace client
|
|||||||
// I2P tunnels
|
// I2P tunnels
|
||||||
ReadTunnels ();
|
ReadTunnels ();
|
||||||
|
|
||||||
|
if ( m_ServiceThread == nullptr ) {
|
||||||
|
m_ServiceThread = new std::thread([&] () {
|
||||||
|
LogPrint(eLogInfo, "ClientContext: starting service");
|
||||||
|
m_Service.run();
|
||||||
|
LogPrint(eLogError, "ClientContext: service died");
|
||||||
|
});
|
||||||
|
ScheduleCleanupUDP();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// SAM
|
// SAM
|
||||||
bool sam; i2p::config::GetOption("sam.enabled", sam);
|
bool sam; i2p::config::GetOption("sam.enabled", sam);
|
||||||
if (sam) {
|
if (sam) {
|
||||||
|
@ -628,6 +628,7 @@ namespace client
|
|||||||
LogPrint(eLogInfo, "UDP Tunnel: Trying to resolve ", m_RemoteDest);
|
LogPrint(eLogInfo, "UDP Tunnel: Trying to resolve ", m_RemoteDest);
|
||||||
m_RemoteIdent = new i2p::data::IdentHash;
|
m_RemoteIdent = new i2p::data::IdentHash;
|
||||||
m_RemoteIdent->Fill(0);
|
m_RemoteIdent->Fill(0);
|
||||||
|
|
||||||
while(!context.GetAddressBook().GetIdentHash(m_RemoteDest, *m_RemoteIdent) && !m_cancel_resolve) {
|
while(!context.GetAddressBook().GetIdentHash(m_RemoteDest, *m_RemoteIdent) && !m_cancel_resolve) {
|
||||||
LogPrint(eLogWarning, "UDP Tunnel: failed to lookup ", m_RemoteDest);
|
LogPrint(eLogWarning, "UDP Tunnel: failed to lookup ", m_RemoteDest);
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user