mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
don't remove ip mapping when endpoints are removed
This commit is contained in:
parent
17297837d9
commit
b56b3ad16d
|
@ -62,8 +62,7 @@ namespace llarp
|
|||
|
||||
/// DO NOT CALL ME
|
||||
void
|
||||
DelEndpointInfo(const llarp::PathID_t& path, const huint32_t& ip,
|
||||
const llarp::PubKey& pk);
|
||||
DelEndpointInfo(const llarp::PathID_t& path);
|
||||
|
||||
/// DO NOT CALL ME
|
||||
void
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace llarp
|
|||
|
||||
Endpoint::~Endpoint()
|
||||
{
|
||||
m_Parent->DelEndpointInfo(m_CurrentPath, m_IP, m_remoteSignKey);
|
||||
m_Parent->DelEndpointInfo(m_CurrentPath);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -309,12 +309,9 @@ namespace llarp
|
|||
}
|
||||
|
||||
void
|
||||
ExitEndpoint::DelEndpointInfo(const llarp::PathID_t &path,
|
||||
const huint32_t &ip, const llarp::PubKey &pk)
|
||||
ExitEndpoint::DelEndpointInfo(const llarp::PathID_t &path)
|
||||
{
|
||||
m_Paths.erase(path);
|
||||
m_IPToKey.erase(ip);
|
||||
m_KeyToIP.erase(pk);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue