From 08bee4ed69bb091e2760b0b80c9f41de039562b4 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 13 Jan 2026 19:10:38 -0500 Subject: [PATCH 1/2] check if tunnels.conf exists before open --- libi2pd_client/ClientContext.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libi2pd_client/ClientContext.cpp b/libi2pd_client/ClientContext.cpp index b1eebe70..0199522d 100644 --- a/libi2pd_client/ClientContext.cpp +++ b/libi2pd_client/ClientContext.cpp @@ -547,8 +547,11 @@ namespace client if (tunConf.empty ()) tunConf = i2p::fs::DataDirPath ("tunnels.conf"); - LogPrint(eLogDebug, "Clients: Tunnels config file: ", tunConf); - ReadTunnels (tunConf, numClientTunnels, numServerTunnels); + if (i2p::fs::Exists (tunConf)) + { + LogPrint(eLogDebug, "Clients: Tunnels config file: ", tunConf); + ReadTunnels (tunConf, numClientTunnels, numServerTunnels); + } std::string tunDir; i2p::config::GetOption("tunnelsdir", tunDir); if (tunDir.empty ()) From 2734bc4d95f4362fbdccd72495f0db97fbcb8f45 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 13 Jan 2026 19:48:16 -0500 Subject: [PATCH 2/2] update NTCP2 address if version has changed --- libi2pd/RouterContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/RouterContext.cpp b/libi2pd/RouterContext.cpp index e5a40242..aa588a05 100644 --- a/libi2pd/RouterContext.cpp +++ b/libi2pd/RouterContext.cpp @@ -425,7 +425,7 @@ namespace i2p if (v4) { auto addr = (*addresses)[i2p::data::RouterInfo::eNTCP2V4Idx]; - if (addr && (addr->port != port || addr->published != publish)) + if (addr && (addr->port != port || addr->published != publish || addr->v != version)) { PublishNTCP2Address (addr, port, publish, version); updated = true; @@ -434,7 +434,7 @@ namespace i2p if (v6) { auto addr = (*addresses)[i2p::data::RouterInfo::eNTCP2V6Idx]; - if (addr && (addr->port != port || addr->published != publish)) + if (addr && (addr->port != port || addr->published != publish || addr->v != version)) { PublishNTCP2Address (addr, port, publish, version); updated = true;