From 631b01a9e102748e0bd140ba28122e740e8ae6e9 Mon Sep 17 00:00:00 2001 From: ales stibal Date: Mon, 22 Apr 2024 23:58:45 +0200 Subject: [PATCH] update new neighbor on its creation too --- src/proxy/nbrhood.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }