diff --git a/llarp/handlers/exit.cpp b/llarp/handlers/exit.cpp index 0a8b88613..0700f159d 100644 --- a/llarp/handlers/exit.cpp +++ b/llarp/handlers/exit.cpp @@ -300,7 +300,7 @@ namespace llarp return false; huint32_t ip = GetIPForIdent(pk); m_ActiveExits.insert(std::make_pair( - pk, new llarp::exit::Endpoint(pk, path, !wantInternet, ip, this))); + (llarp::PubKey)pk, std::make_unique(pk, path, !wantInternet, ip, this))); m_Paths[path] = pk; return HasLocalMappedAddrFor(pk); } @@ -352,4 +352,4 @@ namespace llarp } } } // namespace handlers -} // namespace llarp \ No newline at end of file +} // namespace llarp