mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
publish NTCP2 adress if port is specified
This commit is contained in:
@@ -706,6 +706,7 @@ namespace data
|
|||||||
addr->date = 0;
|
addr->date = 0;
|
||||||
addr->ntcp2.reset (new NTCP2Ext ());
|
addr->ntcp2.reset (new NTCP2Ext ());
|
||||||
addr->ntcp2->isNTCP2Only = true; // NTCP2 only address
|
addr->ntcp2->isNTCP2Only = true; // NTCP2 only address
|
||||||
|
if (port) addr->ntcp2->isPublished = true;
|
||||||
memcpy (addr->ntcp2->staticKey, staticKey, 32);
|
memcpy (addr->ntcp2->staticKey, staticKey, 32);
|
||||||
memcpy (addr->ntcp2->iv, iv, 16);
|
memcpy (addr->ntcp2->iv, iv, 16);
|
||||||
m_Addresses->push_back(std::move(addr));
|
m_Addresses->push_back(std::move(addr));
|
||||||
|
|||||||
Reference in New Issue
Block a user