1
1
Fork 0
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:
Jeff Becker 2018-11-15 17:10:12 -05:00
parent 17297837d9
commit b56b3ad16d
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
3 changed files with 3 additions and 7 deletions

View file

@ -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

View file

@ -18,7 +18,7 @@ namespace llarp
Endpoint::~Endpoint()
{
m_Parent->DelEndpointInfo(m_CurrentPath, m_IP, m_remoteSignKey);
m_Parent->DelEndpointInfo(m_CurrentPath);
}
void

View file

@ -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