Commit f9129538 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) style fix filter.inc

parent 5a317b09
...@@ -2869,7 +2869,7 @@ EOD; ...@@ -2869,7 +2869,7 @@ EOD;
$ipfrules .= "\n# SSH lockout\n"; $ipfrules .= "\n# SSH lockout\n";
if(is_array($config['system']['ssh']) && !empty($config['system']['ssh']['port'])) { if(!empty($config['system']['ssh']['port'])) {
$ipfrules .= "block in {$log['block']} quick proto tcp from <sshlockout> to (self) port "; $ipfrules .= "block in {$log['block']} quick proto tcp from <sshlockout> to (self) port ";
$ipfrules .= $config['system']['ssh']['port']; $ipfrules .= $config['system']['ssh']['port'];
$ipfrules .= " label \"sshlockout\"\n"; $ipfrules .= " label \"sshlockout\"\n";
...@@ -2879,9 +2879,7 @@ EOD; ...@@ -2879,9 +2879,7 @@ EOD;
} else { } else {
$sshport = 22; $sshport = 22;
} }
if($sshport) { $ipfrules .= "block in {$log['block']} quick proto tcp from <sshlockout> to (self) port {$sshport} label \"sshlockout\"\n";
$ipfrules .= "block in {$log['block']} quick proto tcp from <sshlockout> to (self) port {$sshport} label \"sshlockout\"\n";
}
} }
......
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