mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
make sure server tunnel is published
This commit is contained in:
parent
e8f4c42bfb
commit
41d6c117ee
@ -139,6 +139,7 @@ namespace client
|
|||||||
void SetLeaseSetUpdated ();
|
void SetLeaseSetUpdated ();
|
||||||
|
|
||||||
bool IsPublic () const { return m_IsPublic; };
|
bool IsPublic () const { return m_IsPublic; };
|
||||||
|
void SetPublic (bool pub) { m_IsPublic = pub; };
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -713,7 +713,10 @@ namespace client
|
|||||||
std::shared_ptr<ClientDestination> localDestination = nullptr;
|
std::shared_ptr<ClientDestination> localDestination = nullptr;
|
||||||
auto it = destinations.find (keys);
|
auto it = destinations.find (keys);
|
||||||
if (it != destinations.end ())
|
if (it != destinations.end ())
|
||||||
|
{
|
||||||
localDestination = it->second;
|
localDestination = it->second;
|
||||||
|
localDestination->SetPublic (true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
i2p::data::PrivateKeys k;
|
i2p::data::PrivateKeys k;
|
||||||
@ -725,6 +728,8 @@ namespace client
|
|||||||
localDestination = CreateNewLocalDestination (k, true, &options);
|
localDestination = CreateNewLocalDestination (k, true, &options);
|
||||||
destinations[keys] = localDestination;
|
destinations[keys] = localDestination;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
localDestination->SetPublic (true);
|
||||||
}
|
}
|
||||||
if (type == I2P_TUNNELS_SECTION_TYPE_UDPSERVER)
|
if (type == I2P_TUNNELS_SECTION_TYPE_UDPSERVER)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user