summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-03-20 12:04:36 -0400
committerjim-p <jimp@pfsense.org>2014-03-20 12:09:39 -0400
commitb6f67168fffd453604178e8c68ede6910f15c7dd (patch)
tree6fdc3aee327f8c3f6a012c52b4c53cc5b3699b73
parent3ec2fca107faeff33e7d2a8ffc8be553f638cf4f (diff)
downloadpfsense-b6f67168fffd453604178e8c68ede6910f15c7dd.zip
pfsense-b6f67168fffd453604178e8c68ede6910f15c7dd.tar.gz
Avoid placing an empty "interface listen" directive in ntpd.conf
-rw-r--r--etc/inc/system.inc3
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";
}
}
OpenPOWER on IntegriCloud