mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
resolve address for NTCP
This commit is contained in:
parent
07c6f2a20b
commit
bf7b53a2a6
4 changed files with 15 additions and 10 deletions
|
@ -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 ()) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue