mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Firewall source nat (outbound), support ranges in plugins. for https://github.com/opnsense/plugins/issues/1749
This commit is contained in:
parent
b5e507f7c7
commit
d24a546a78
@ -106,6 +106,8 @@ class SNatRule extends Rule
|
||||
$rule['disabled'] = true;
|
||||
}
|
||||
$rule[$fieldname] = "$" . $rule[$fieldname];
|
||||
} elseif (!empty($rule[$fieldname])) {
|
||||
$rule[$fieldname] = str_replace('-', ':', $rule[$fieldname]); // range interpretation
|
||||
}
|
||||
}
|
||||
if (empty($rule['poolopts']) || $rule['poolopts'] != "source-hash") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user