3.0: fixed a bad reference in 'fail2ban' configuration

This commit is contained in:
Jordi Sanfeliu 2013-01-03 10:48:14 +01:00
parent 3f6f368abd
commit f863267f1c
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ EOF
next;
}
if($g eq "fail2ban") {
for($n = 0; $n < scalar(my @fail2ban_list = split(',', $config{fail2ban_list})); $n++) {
for($n = 0; $n < scalar(my @fail2ban_list = split(',', $config{fail2ban}->{list})); $n++) {
my $name = trim($fail2ban_list[$n]);
$gname = "_" . $g;
print(OUT " <option value='" . $gname . $n . "'>" . $name . "</option>\n");