check if IP address is valid

This commit is contained in:
orignal 2014-01-21 18:01:11 -05:00
parent 2d428fd090
commit ddb9a6b477
3 changed files with 12 additions and 3 deletions

View file

@ -517,7 +517,7 @@ namespace ntcp
}
NTCPClient::NTCPClient (boost::asio::io_service& service, boost::asio::ip::address& address,
NTCPClient::NTCPClient (boost::asio::io_service& service, const boost::asio::ip::address& address,
int port, i2p::data::RouterInfo& in_RouterInfo):
NTCPSession (service, in_RouterInfo),
m_Endpoint (address, port)