interface: automatic dhcp-hostname determination: use dhcp-hostname instead of legacy hostname property

This commit is contained in:
Ariadne Conill 2021-04-07 09:30:21 -06:00
parent 02bc14da19
commit 58b1cf1021

View file

@ -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