From daed7646d7e8e5d555676299ce660408b490ef81 Mon Sep 17 00:00:00 2001 From: phroggie Date: Sat, 1 Oct 2016 15:22:18 -0500 Subject: 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" --- src/etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc/inc/system.inc') 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 { -- cgit v1.1