mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
NetworkServer: Enable DHCP on interfaces that are not listed in config
This commit is contained in:
parent
544636fd0f
commit
65307cf5cc
Notes:
sideshowbarker
2024-07-17 09:44:07 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/65307cf5cc Pull-request: https://github.com/SerenityOS/serenity/pull/14459 Reviewed-by: https://github.com/IdanHo ✅
@ -1,5 +1,2 @@
|
||||
[ep1s0]
|
||||
Enabled=false
|
||||
|
||||
[ep0s8]
|
||||
DHCP=true
|
||||
|
@ -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…
Reference in New Issue
Block a user