mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
unbound: small error in previous #3051
This commit is contained in:
parent
6cbae54033
commit
2c83768395
@ -722,9 +722,9 @@ function unbound_acls_subnets()
|
||||
foreach ($active_interfaces as $ubif => $ubextra) {
|
||||
foreach (legacy_getall_interface_addresses(get_real_interface($ubif)) as $subnet) {
|
||||
if (!empty($ubextra['net4']) && is_subnetv4($subnet)) {
|
||||
$subnet = explode('/', $subnet)[0] . $ubextra['net4'];
|
||||
$subnet = explode('/', $subnet)[0] . '/' . $ubextra['net4'];
|
||||
} elseif (!empty($ubextra['net6']) && is_subnetv6($subnet)) {
|
||||
$subnet = explode('/', $subnet)[0] . $ubextra['net6'];
|
||||
$subnet = explode('/', $subnet)[0] . '/' . $ubextra['net6'];
|
||||
}
|
||||
$subnets[] = $subnet;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user