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

This commit is contained in:
andryyy committed 2019-01-10 22:17:09 +01:00
1 parent ab35e1d688
commit b685499b22
1 file changed
+1
+1
View File
@@ -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);
}
}
}