mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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"
This commit is contained in:
parent
2fb0c0a71b
commit
daed7646d7
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user