Skip to content

Commit

Permalink
Avoid placing an empty "interface listen" directive in ntpd.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Mar 20, 2014
1 parent bd53b62 commit 8b650e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/inc/system.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit 8b650e5

Please sign in to comment.