Reverse bad logic in FilterLocalNetworks

tags/0.0.1
Daniel Berteaud 12 years ago
parent df3190298d
commit d73e7df337
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP

@ -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…
Cancel
Save