mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 09:56:01 +00:00
[Web] Delete network from whitelist when adding it to the blacklist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user