summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorphroggie <phroggster@gmail.com>2016-10-01 15:22:18 -0500
committerRenato Botelho <renato@netgate.com>2016-10-12 12:37:57 -0300
commit9fc8273a25820a793d167e56f269e1acfc3776d3 (patch)
tree12ba9ecc2205e660c3bb4d965f3891d50dc944e6 /src/etc
parent0a1daa734cf21e72fc1dcd1c992bc287d11666c4 (diff)
downloadpfsense-9fc8273a25820a793d167e56f269e1acfc3776d3.zip
pfsense-9fc8273a25820a793d167e56f269e1acfc3776d3.tar.gz
Fixup ntpd IPv6 restrict clauses.
This should eliminate the following errors from the ntpd log file when using IPv6 or dual-stack networks: "syntax error, unexpected T_Mask, expecting T_EOC" (cherry picked from commit daed7646d7e8e5d555676299ce660408b490ef81)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 1b87d68..36071dc 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1821,7 +1821,7 @@ function system_ntp_configure() {
foreach ($networkacl as $acl) {
$ntpcfg .= "\nrestrict ";
if (is_ipaddrv6($acl['acl_network'])) {
- $ntpcfg .= "-6 {$acl['acl_network']} mask " . gen_subnet_mask_v6($acl['mask']) . " ";
+ $ntpcfg .= "{$acl['acl_network']} mask " . gen_subnet_mask_v6($acl['mask']) . " ";
} elseif (is_ipaddrv4($acl['acl_network'])) {
$ntpcfg .= "{$acl['acl_network']} mask " . gen_subnet_mask($acl['mask']) . " ";
} else {
OpenPOWER on IntegriCloud