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

master
andryyy 2019-01-10 22:17:09 +01:00
parent ab35e1d688
commit b685499b22
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 0 deletions

View File

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