pull/66/head
Jeff Becker 6 years ago
parent 489d1e645b
commit b689bbbcf6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -107,9 +107,10 @@ namespace llarp
if(itr == m_KeyToIP.end()) if(itr == m_KeyToIP.end())
{ {
// allocate and map // allocate and map
found = AllocateNewAddress(); found = AllocateNewAddress();
m_KeyToIP.insert(std::make_pair(pk, found)); m_KeyToIP[pk] = found;
m_IPToKey.insert(std::make_pair(found, pk)); m_IPToKey[found] = pk;
llarp::LogInfo(Name(), "mapping ", pk, " to ", found);
} }
else else
found = itr->second; found = itr->second;
@ -271,7 +272,8 @@ namespace llarp
huint32_t ip = GetIPForIdent(pk); huint32_t ip = GetIPForIdent(pk);
m_ActiveExits.insert(std::make_pair( m_ActiveExits.insert(std::make_pair(
pk, llarp::exit::Endpoint(pk, path, !wantInternet, ip, this))); pk, llarp::exit::Endpoint(pk, path, !wantInternet, ip, this)));
m_Paths.insert(std::make_pair(path, pk)); m_Paths[path] = pk;
llarp::LogInfo(Name(), " exit for ", pk, " has address ", ip);
return true; return true;
} }

Loading…
Cancel
Save