add a config option to disable automatically setting the dhcp hostname

This commit is contained in:
Ariadne Conill 2020-10-14 05:15:58 -06:00
parent a210cf6a66
commit 4aa2749737
4 changed files with 13 additions and 0 deletions

View file

@ -123,6 +123,9 @@ lif_interface_init(struct lif_interface *interface, const char *ifname)
if (strchr(ifname, '.') != NULL)
lif_interface_use_executor(interface, "vlan");
if (!lif_config.use_hostname_for_dhcp)
return;
/* learn a reasonable default hostname */
struct utsname un;
if (uname(&un) < 0)