[Web] Sort fail2ban black and whitelist

master
André 2018-04-29 23:52:40 +02:00
parent f76294e52a
commit a3f194e890
1 changed files with 2 additions and 0 deletions

View File

@ -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 {