diff options
author | jim-p <jimp@pfsense.org> | 2014-03-20 12:04:36 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-03-20 12:09:39 -0400 |
commit | b6f67168fffd453604178e8c68ede6910f15c7dd (patch) | |
tree | 6fdc3aee327f8c3f6a012c52b4c53cc5b3699b73 /etc | |
parent | 3ec2fca107faeff33e7d2a8ffc8be553f638cf4f (diff) | |
download | pfsense-b6f67168fffd453604178e8c68ede6910f15c7dd.zip pfsense-b6f67168fffd453604178e8c68ede6910f15c7dd.tar.gz |
Avoid placing an empty "interface listen" directive in ntpd.conf
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index da6e25d..57b55ce 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1332,7 +1332,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"; } } |