Fixup i2cp option on reconfigure.

Make sure i2cp.dontPublishLeaseSet option logic correctly applies on reconfigure.
This commit is contained in:
Jeff Becker
2026-04-03 09:02:12 -04:00
parent 975d3c61f0
commit 1397c93de1
+5 -3
View File
@@ -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 &params) {
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 ();