mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
firewall: fix translation #5284
This commit is contained in:
parent
b7a9d0b41f
commit
f7e64baa5c
@ -74,7 +74,7 @@ class NptRule extends Rule
|
||||
foreach ($this->reader('npt') as $rule) {
|
||||
if (empty($rule['to'])) {
|
||||
/* auto-detect expands from dynamic interface address */
|
||||
$rule['to'] = "({$rule['interface']}:0)/" . explode('/', $rule['from'])[1];
|
||||
$rule['to'] = parseInterface($rule['interface'], '(', ':0)/' . explode('/', $rule['from'])[1]);
|
||||
}
|
||||
yield $rule;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user