Commit 13a6db0c authored by Franco Fichtner's avatar Franco Fichtner

firewall: $tableaddrs cannot be empty

Not sure if this works, but it looks better than before.

(cherry picked from commit f7ffa6e4)
parent c9e2802f
......@@ -786,8 +786,7 @@ function filter_generate_aliases(&$FilterIflist, &$after_filter_configure_run)
case "host":
case "network":
case "url":
$tableaddrs = "{$addrlist}";
if (empty($tableaddrs)) {
if (empty($addrlist)) {
$aliases .= "table <{$aliased['name']}> persist\n";
if (empty($aliased['address'])) {
$after_filter_configure_run[] = $aliased['name'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment