From 58b1cf102185f8d109dc4d2ebdb6173beb0564e6 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 7 Apr 2021 09:30:21 -0600 Subject: [PATCH] interface: automatic dhcp-hostname determination: use dhcp-hostname instead of legacy hostname property --- libifupdown/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/interface.c b/libifupdown/interface.c index 0294383..46462fd 100644 --- a/libifupdown/interface.c +++ b/libifupdown/interface.c @@ -216,7 +216,7 @@ lif_interface_use_executor(struct lif_interface *interface, const char *executor if (uname(&un) < 0) return; - lif_dict_add(&interface->vars, "hostname", strdup(un.nodename)); + lif_dict_add(&interface->vars, "dhcp-hostname", strdup(un.nodename)); } void