resolve address for NTCP

This commit is contained in:
orignal 2015-01-16 23:01:40 -05:00
parent 07c6f2a20b
commit bf7b53a2a6
4 changed files with 15 additions and 10 deletions

View file

@ -69,7 +69,7 @@ namespace data
{
TransportStyle transportStyle;
boost::asio::ip::address host;
char * addressString;
std::string addressString;
int port, mtu;
uint64_t date;
uint8_t cost;
@ -77,9 +77,6 @@ namespace data
Tag<32> key; // intro key for SSU
std::vector<Introducer> introducers;
Address (): addressString (nullptr) {};
~Address () { if (addressString) delete[] addressString; };
bool IsCompatible (const boost::asio::ip::address& other) const
{
return (host.is_v4 () && other.is_v4 ()) ||