[windows] fix msys build

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-05-14 20:59:52 +03:00
parent 23be4c01df
commit b5b195e628
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
2 changed files with 3 additions and 3 deletions

View file

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