fix windows

pull/35/head
Jeff Becker 6 years ago
parent 51baf43e99
commit d3bada5564
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -51,8 +51,8 @@ namespace llarp
bool
ProcessDataMessage(service::ProtocolMessage* msg);
#ifndef _MINGW32_NO_THREADS
/// overrides Endpount
#ifndef WIN32
/// overrides Endpoint
bool
IsolationFailed()
{
@ -113,7 +113,7 @@ namespace llarp
FlushSend();
private:
#ifndef _MINGW32_NO_THREADS
#ifndef WIN32
/// handles setup, given value true on success and false on failure to set
/// up interface
std::promise< bool > m_TunSetupResult;

@ -254,8 +254,10 @@ namespace llarp
{
llarp::LogInfo("Set Up networking for ", Name());
bool result = SetupTun();
#ifndef WIN32
m_TunSetupResult.set_value(
result); // now that NT has tun, we don't need the CPP guard
#endif
if(!NetworkIsIsolated())
{
// need to check to see if we have more than one hidden service

Loading…
Cancel
Save