mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pass NTCP2 ipv6 address
This commit is contained in:
parent
8753186a0d
commit
f0d4ee6618
3 changed files with 8 additions and 12 deletions
|
@ -476,15 +476,12 @@ namespace i2p
|
|||
}
|
||||
}
|
||||
|
||||
if (!updated)
|
||||
if (!updated && port) // we have found NTCP2 v4 but not v6
|
||||
{
|
||||
if (port) // we have found NTCP2 v4 but not v6
|
||||
{
|
||||
m_RouterInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv);
|
||||
PublishNTCP2Address (port, true);
|
||||
}
|
||||
m_RouterInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv, host, port);
|
||||
updated = true;
|
||||
}
|
||||
else
|
||||
if (updated)
|
||||
UpdateRouterInfo ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue