mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
Revert "change rule "interface address" parsing to use "interface:0" in stead of "interface", for https://github.com/opnsense/core/issues/2457"
This reverts commit 2408d6a1261f61206eab437d1b933d2ecf8fbfca.
This commit is contained in:
parent
188b098110
commit
b09363fea5
@ -234,7 +234,7 @@ abstract class Rule
|
||||
$rule[$target] = "(self)";
|
||||
} elseif (preg_match("/^(wan|lan|opt[0-9]+)ip$/", $network_name, $matches)) {
|
||||
if (!empty($interfaces[$matches[1]]['if'])) {
|
||||
$rule[$target] = "({$interfaces["{$matches[1]}"]['if']}:0)";
|
||||
$rule[$target] = "({$interfaces["{$matches[1]}"]['if']})";
|
||||
}
|
||||
} elseif (!empty($interfaces[$network_name]['if'])) {
|
||||
$rule[$target] = "({$interfaces[$network_name]['if']}:network)";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user