create ipv4 and ipv6 NTCP2 addresses separately

This commit is contained in:
orignal 2021-02-17 21:51:35 -05:00
parent d65bc068de
commit 94659ba890

View File

@ -98,7 +98,7 @@ namespace i2p
if (ntcp2)
{
if (ntcp2Published)
m_RouterInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv, boost::asio::ip::address_v4::from_string (host), port);
routerInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv, boost::asio::ip::address_v4::from_string (host), port);
else // add non-published NTCP2 address
routerInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv);
}