[Web] Delete network from whitelist when adding it to the blacklist
parent
ab35e1d688
commit
b685499b22
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue