Commit c8d185a4 authored by Franco Fichtner's avatar Franco Fichtner

inc: minimise line movement on previous

parent 0b3c3aac
...@@ -1993,9 +1993,7 @@ function filter_generate_port(& $rule, $target = "source", $isnat = false) { ...@@ -1993,9 +1993,7 @@ function filter_generate_port(& $rule, $target = "source", $isnat = false) {
$srcport = explode("-", $rule[$target]['port']); $srcport = explode("-", $rule[$target]['port']);
$srcporta = alias_expand($srcport[0]); $srcporta = alias_expand($srcport[0]);
if (!$srcporta) { if (!$srcporta) {
log_error(sprintf( log_error(sprintf( _('filter_generate_port: %s is not a valid %s port.'), $srcport[0], $target));
_('filter_generate_port: %s is not a valid %s port.'), $srcport[0], $target
));
} elseif ((!$srcport[1]) || ($srcport[0] == $srcport[1])) { } elseif ((!$srcport[1]) || ($srcport[0] == $srcport[1])) {
$src .= " port {$srcporta} "; $src .= " port {$srcporta} ";
} else if(($srcport[0] == 1) && ($srcport[1] == 65535)) { } else if(($srcport[0] == 1) && ($srcport[1] == 65535)) {
......
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