Make the GUI interfaces selection actually honored by ntpd

Without the "interface ignore wildcard" directive, the service still listens on wildcard.
This commit is contained in:
doktornotor 2023-12-16 20:03:50 +01:00 committed by Franco Fichtner
parent 35548cee4f
commit 4e4f28bf09

View File

@ -427,6 +427,7 @@ function ntpd_configure_do($verbose = false)
if (is_array($interfaces) && count($interfaces)) {
$ntpcfg .= "interface ignore all\n";
$ntpcfg .= "interface ignore wildcard\n";
foreach ($interfaces as $interface) {
if (!is_ipaddr($interface)) {
$interface = get_real_interface($interface);