mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Avoid placing an empty "interface listen" directive in ntpd.conf
This commit is contained in:
parent
bd53b624d4
commit
8b650e57d6
@ -1631,7 +1631,8 @@ function system_ntp_configure($start_ntpd=true) {
|
||||
if (!is_ipaddr($interface)) {
|
||||
$interface = get_real_interface($interface);
|
||||
}
|
||||
$ntpcfg .= "interface listen {$interface}\n";
|
||||
if (!empty($interface))
|
||||
$ntpcfg .= "interface listen {$interface}\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user