Browse Source

make sure server tunnel is published

pull/1693/head
orignal 3 years ago
parent
commit
41d6c117ee
  1. 1
      libi2pd/Destination.h
  2. 5
      libi2pd_client/ClientContext.cpp

1
libi2pd/Destination.h

@ -139,6 +139,7 @@ namespace client @@ -139,6 +139,7 @@ namespace client
void SetLeaseSetUpdated ();
bool IsPublic () const { return m_IsPublic; };
void SetPublic (bool pub) { m_IsPublic = pub; };
protected:

5
libi2pd_client/ClientContext.cpp

@ -713,7 +713,10 @@ namespace client @@ -713,7 +713,10 @@ namespace client
std::shared_ptr<ClientDestination> localDestination = nullptr;
auto it = destinations.find (keys);
if (it != destinations.end ())
{
localDestination = it->second;
localDestination->SetPublic (true);
}
else
{
i2p::data::PrivateKeys k;
@ -725,6 +728,8 @@ namespace client @@ -725,6 +728,8 @@ namespace client
localDestination = CreateNewLocalDestination (k, true, &options);
destinations[keys] = localDestination;
}
else
localDestination->SetPublic (true);
}
if (type == I2P_TUNNELS_SECTION_TYPE_UDPSERVER)
{

Loading…
Cancel
Save