summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/system.inc
diff options
context:
space:
mode:
authorphroggie <phroggster@gmail.com>2016-10-01 15:22:18 -0500
committerphroggie <phroggster@gmail.com>2016-10-01 15:22:18 -0500
commitdaed7646d7e8e5d555676299ce660408b490ef81 (patch)
tree6f22cbc38a730ec2400f256853c1c4b5ec910a7c /src/etc/inc/system.inc
parent2fb0c0a71bf47d045ac74da93fbddb5a261cd0f1 (diff)
downloadpfsense-daed7646d7e8e5d555676299ce660408b490ef81.zip
pfsense-daed7646d7e8e5d555676299ce660408b490ef81.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"
Diffstat (limited to 'src/etc/inc/system.inc')
-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 0914c19..894e44e 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1808,7 +1808,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