From d9476fb5cae256d41005df96785cd7e7a06d3d48 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 19 Aug 2018 16:17:57 -0400 Subject: [PATCH] set correct IV when NTCP2 address gets published --- libi2pd/RouterContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libi2pd/RouterContext.cpp b/libi2pd/RouterContext.cpp index b2774aa2..a3d33113 100644 --- a/libi2pd/RouterContext.cpp +++ b/libi2pd/RouterContext.cpp @@ -164,6 +164,7 @@ namespace i2p void RouterContext::PublishNTCP2Address (int port, bool publish) { + if (!m_NTCP2Keys) return; if (!port) port = rand () % (30777 - 9111) + 9111; // I2P network ports range bool updated = false; @@ -173,6 +174,7 @@ namespace i2p { address->port = port; address->ntcp2->isPublished = publish; + address->ntcp2->iv = m_NTCP2Keys->iv; updated = true; } }