diff --git a/src/proxy/nbrhood.hpp b/src/proxy/nbrhood.hpp index 69635e1..84235fc 100644 --- a/src/proxy/nbrhood.hpp +++ b/src/proxy/nbrhood.hpp @@ -250,7 +250,9 @@ class NbrHood { nbr.value()->update(); } else { - cache().put_ul(hostname, std::make_shared(hostname)); + auto ptr = std::make_shared(hostname); + ptr->update(); + cache().put_ul(hostname, ptr); sx::http::webhooks::neighbor_new(hostname); } }