Reverse bad logic in FilterLocalNetworks
This commit is contained in:
parent
df3190298d
commit
d73e7df337
|
@ -9,7 +9,7 @@ my @ip = ("127.0.0.1");
|
|||
# Add hosts which can access the server-manager to the whitelist
|
||||
push @ip, $_ foreach (split /[,;]/, (${'httpd-admin'}{'ValidFrom'} || ''));
|
||||
|
||||
if (($fail2ban{FilterLocalNetworks} || 'disabled') eq 'enabled'){
|
||||
unless (($fail2ban{FilterLocalNetworks} || 'disabled') eq 'enabled'){
|
||||
foreach my $net ($n->networks){
|
||||
my $key = $net->key;
|
||||
my $mask = $net->prop('Mask');
|
||||
|
|
Loading…
Reference in New Issue
Block a user