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:
Franco Fichtner 2018-07-20 11:58:49 +02:00
parent 188b098110
commit b09363fea5

View File

@ -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)";