From b56b3ad16d67f5c03a80924ebf6b2123b609e416 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 15 Nov 2018 17:10:12 -0500 Subject: [PATCH] don't remove ip mapping when endpoints are removed --- include/llarp/handlers/exit.hpp | 3 +-- llarp/exit/endpoint.cpp | 2 +- llarp/handlers/exit.cpp | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/llarp/handlers/exit.hpp b/include/llarp/handlers/exit.hpp index f9d376479..16f18f344 100644 --- a/include/llarp/handlers/exit.hpp +++ b/include/llarp/handlers/exit.hpp @@ -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 diff --git a/llarp/exit/endpoint.cpp b/llarp/exit/endpoint.cpp index 4945d09d3..7b3d3e6e5 100644 --- a/llarp/exit/endpoint.cpp +++ b/llarp/exit/endpoint.cpp @@ -18,7 +18,7 @@ namespace llarp Endpoint::~Endpoint() { - m_Parent->DelEndpointInfo(m_CurrentPath, m_IP, m_remoteSignKey); + m_Parent->DelEndpointInfo(m_CurrentPath); } void diff --git a/llarp/handlers/exit.cpp b/llarp/handlers/exit.cpp index ed5cd8f19..08b8d3f5b 100644 --- a/llarp/handlers/exit.cpp +++ b/llarp/handlers/exit.cpp @@ -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