mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-10 05:57:12 +00:00
Add hostnames for blacklist.
This commit is contained in:
1 parent
e6de9c299d
commit
b862ce2bfb
2 files changed
+87
-37
No files matched your search
@@ -203,7 +203,7 @@ function fail2ban($_action, $_data = null) {
|
||||
$bl_array = array_map('trim', preg_split( "/( |,|;|\n)/", $bl));
|
||||
if (is_array($bl_array)) {
|
||||
foreach ($bl_array as $bl_item) {
|
||||
if (valid_network($bl_item)) {
|
||||
if (valid_network($bl_item) || valid_hostname($bl_item)) {
|
||||
$redis->hSet('F2B_BLACKLIST', $bl_item, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user