mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use boost::asio::address for address
This commit is contained in:
@@ -45,7 +45,7 @@ namespace i2p
|
||||
auto address = m_RouterInfo.GetNTCPAddress ();
|
||||
if (address)
|
||||
{
|
||||
address->host = host;
|
||||
address->host = boost::asio::ip::address::from_string (host);
|
||||
address->port = port;
|
||||
}
|
||||
|
||||
@@ -80,4 +80,4 @@ namespace i2p
|
||||
std::ofstream fi (ROUTER_INFO);
|
||||
fi.write ((char *)m_RouterInfo.GetBuffer (), m_RouterInfo.GetBufferLen ());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user