mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-18 04:59:16 +02:00
[Web] Sort fail2ban black and whitelist
This commit is contained in:
parent
f76294e52a
commit
a3f194e890
@ -16,6 +16,7 @@ function fail2ban($_action, $_data = null) {
|
||||
$tmp_wl_data[] = $key;
|
||||
}
|
||||
if (isset($tmp_wl_data)) {
|
||||
sort($tmp_wl_data);
|
||||
$f2b_options['whitelist'] = implode(PHP_EOL, $tmp_wl_data);
|
||||
}
|
||||
else {
|
||||
@ -31,6 +32,7 @@ function fail2ban($_action, $_data = null) {
|
||||
$tmp_bl_data[] = $key;
|
||||
}
|
||||
if (isset($tmp_bl_data)) {
|
||||
sort($tmp_bl_data);
|
||||
$f2b_options['blacklist'] = implode(PHP_EOL, $tmp_bl_data);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user