File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ namespace client
139139 void SetLeaseSetUpdated ();
140140
141141 bool IsPublic () const { return m_IsPublic; };
142+ void SetPublic (bool pub) { m_IsPublic = pub; };
142143
143144 protected:
144145
Original file line number Diff line number Diff line change @@ -713,7 +713,10 @@ namespace client
713713 std::shared_ptr<ClientDestination> localDestination = nullptr ;
714714 auto it = destinations.find (keys);
715715 if (it != destinations.end ())
716+ {
716717 localDestination = it->second ;
718+ localDestination->SetPublic (true );
719+ }
717720 else
718721 {
719722 i2p::data::PrivateKeys k;
@@ -725,6 +728,8 @@ namespace client
725728 localDestination = CreateNewLocalDestination (k, true , &options);
726729 destinations[keys] = localDestination;
727730 }
731+ else
732+ localDestination->SetPublic (true );
728733 }
729734 if (type == I2P_TUNNELS_SECTION_TYPE_UDPSERVER)
730735 {
You can’t perform that action at this time.
0 commit comments