Browse Source

[Web] Delete network from whitelist when adding it to the blacklist

andryyy 6 years ago
parent
commit
b685499b22
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/web/inc/functions.fail2ban.inc.php

+ 1 - 0
data/web/inc/functions.fail2ban.inc.php

@@ -117,6 +117,7 @@ function fail2ban($_action, $_data = null) {
             elseif ($_data['action'] == "blacklist") {
               if (valid_network($network)) {
                 $redis->hSet('F2B_BLACKLIST', $network, 1);
+                $redis->hDel('F2B_WHITELIST', $network, 1);
               }
             }
           }