summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2022-07-02 21:41:05 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-07-04 13:20:24 +0300
commit65307cf5cc93f63e2a8dc6a14d600eb17d8cc640 (patch)
tree10a90169cbdfc221ecd2f9fcaf05b31560846433 /Userland/Services
parent544636fd0fa39955f2fae85e6932bb636ce60eb8 (diff)
downloadserenity-65307cf5cc93f63e2a8dc6a14d600eb17d8cc640.zip
NetworkServer: Enable DHCP on interfaces that are not listed in config
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/NetworkServer/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/NetworkServer/main.cpp b/Userland/Services/NetworkServer/main.cpp
index d5e194f5f5..f20299c842 100644
--- a/Userland/Services/NetworkServer/main.cpp
+++ b/Userland/Services/NetworkServer/main.cpp
@@ -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);