mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:58:12 +00:00
NetworkServer: Enable DHCP on interfaces that are not listed in config
This commit is contained in:
parent
544636fd0f
commit
65307cf5cc
2 changed files with 2 additions and 4 deletions
|
@ -54,7 +54,8 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
|
||||
InterfaceConfig config;
|
||||
if (!groups.contains_slow(ifname)) {
|
||||
dbgln("Config for interface {} doesn't exist, not enabling it", ifname);
|
||||
dbgln("Config for interface {} doesn't exist, enabling DHCP for it", ifname);
|
||||
interfaces_with_dhcp_enabled.append(ifname);
|
||||
} else {
|
||||
config.enabled = config_file->read_bool_entry(ifname, "Enabled", true);
|
||||
config.dhcp_enabled = config_file->read_bool_entry(ifname, "DHCP", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue