From 90ca879d614d1b8d66fd2e49fdb0f80935f69456 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: Tue, 12 Dec 2023 10:34:35 +0100
Subject: [PATCH] add hostname to hosts event

---
 src/ubus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ubus.c b/src/ubus.c
index ba01157..66095e3 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -1406,6 +1406,8 @@ int hostmngr_host_event(struct hostmngr_private *priv, const char *event,
 	net = hostmngr_ifname_to_network(priv, e->ifname);
 	blobmsg_add_string(&b, "network", net ? net : "");
 
+	blobmsg_add_string(&b, "hostname", e->hostname);
+
 	ubus_send_event(priv->bus, HOST_EVENT, b.head);
 	blob_buf_free(&b);
 
-- 
GitLab