pass NTCP2 ipv6 address

This commit is contained in:
orignal 2018-08-27 16:01:47 -04:00
parent 8753186a0d
commit f0d4ee6618
3 changed files with 8 additions and 12 deletions

View file

@ -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 ();
}