use "use loopback" hint instead of "inet loopback", same with dhcp

This commit is contained in:
Ariadne Conill 2020-07-24 05:00:49 -06:00
parent 37394310ea
commit 16af3755e0
4 changed files with 7 additions and 12 deletions

View file

@ -91,9 +91,10 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename)
continue;
if (!strcmp(hint, "dhcp"))
{
cur_iface->is_dhcp = true;
else if (!strcmp(hint, "loopback"))
cur_iface->is_loopback = true;
lif_dict_add(&cur_iface->vars, "use", strdup("dhcp"));
}
}
else if (!strcmp(token, "use"))
{