pull/66/head
Jeff Becker 6 years ago
parent 2bfdd7798c
commit 60ad2c76e0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -84,7 +84,7 @@ namespace llarp
private:
huint32_t
GetIPForIdent(const llarp::PubKey& pk);
GetIPForIdent(const llarp::PubKey pk);
huint32_t
AllocateNewAddress();

@ -100,7 +100,7 @@ namespace llarp
}
huint32_t
ExitEndpoint::GetIPForIdent(const llarp::PubKey &pk)
ExitEndpoint::GetIPForIdent(const llarp::PubKey pk)
{
huint32_t found = {0};
auto itr = m_KeyToIP.find(pk);
@ -111,9 +111,9 @@ namespace llarp
else
{
// allocate and map
found = AllocateNewAddress();
m_KeyToIP.emplace(std::make_pair(pk, found));
m_IPToKey.emplace(std::make_pair(found, pk));
found = AllocateNewAddress();
m_KeyToIP[pk] = found;
m_IPToKey[found] = pk;
llarp::LogInfo(Name(), "mapping ", pk, " to ", found);
}

Loading…
Cancel
Save