Avoid placing an empty "interface listen" directive in ntpd.conf

This commit is contained in:
jim-p 2014-03-20 12:08:37 -04:00
parent bd53b624d4
commit 8b650e57d6

View File

@ -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";
}
}