Browse Source

[windows] fix msys build

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1514/head
R4SAS 5 years ago
parent
commit
b5b195e628
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      Win32/Win32Service.cpp
  2. 4
      libi2pd_client/I2PTunnel.cpp

2
Win32/Win32Service.cpp

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "Win32Service.h"
#include <assert.h>
#include <strsafe.h>
//#include <strsafe.h>
#include <windows.h>
#include "Daemon.h"

4
libi2pd_client/I2PTunnel.cpp

@ -69,15 +69,15 @@ namespace client @@ -69,15 +69,15 @@ namespace client
return ourIP;
}
#ifdef __linux__
static void MapToLoopback(const std::shared_ptr<boost::asio::ip::tcp::socket> & sock, const i2p::data::IdentHash & addr)
{
// bind to 127.x.x.x address
// where x.x.x are first three bytes from ident
auto ourIP = GetLoopbackAddressFor(addr);
sock->bind (boost::asio::ip::tcp::endpoint (ourIP, 0));
}
#endif
void I2PTunnelConnection::Connect (bool isUniqueLocal)
{

Loading…
Cancel
Save