[windows] fix msys build

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1514/head
R4SAS 4 years ago
parent 23be4c01df
commit b5b195e628
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

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

@ -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