From 1397c93de1909fb3a5146f022a834929b9d762cd Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 3 Apr 2026 09:02:12 -0400 Subject: [PATCH] Fixup i2cp option on reconfigure. Make sure i2cp.dontPublishLeaseSet option logic correctly applies on reconfigure. --- libi2pd/Destination.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libi2pd/Destination.cpp b/libi2pd/Destination.cpp index b8517712..aa77b09e 100644 --- a/libi2pd/Destination.cpp +++ b/libi2pd/Destination.cpp @@ -161,10 +161,12 @@ namespace client CleanUp (); // GarlicDestination } - bool LeaseSetDestination::Reconfigure(const i2p::util::Mapping& params) - { - params.Get (I2CP_PARAM_DONT_PUBLISH_LEASESET, m_IsPublic); + bool + LeaseSetDestination::Reconfigure(const i2p::util::Mapping ¶ms) { + bool dontPublishLeaseSet = true; + params.Get(I2CP_PARAM_DONT_PUBLISH_LEASESET, dontPublishLeaseSet); + m_IsPublic = !dontPublishLeaseSet; auto numTags = GetNumTags (); params.Get (I2CP_PARAM_TAGS_TO_SEND, numTags); auto numRatchetInboundTags = GetNumRatchetInboundTags ();