Merge pull request #4 from orignal/master

Merge pull request from orignal/master
This commit is contained in:
chertov 2014-01-21 19:30:12 -08:00
commit 27e448290d
6 changed files with 31 additions and 16 deletions

View file

@ -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, std::ios::binary);
fi.write ((char *)m_RouterInfo.GetBuffer (), m_RouterInfo.GetBufferLen ());
}
}
}