[Web] Hide up time of containers that are missing
[Web] Rename fail2ban logs to netfiter logs [Web] Adding timeout to curl requests for dockerapi, fixes #981 [Web] Removed cow from favicon
This commit is contained in:
@@ -880,14 +880,14 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
echo '{}';
|
||||
}
|
||||
break;
|
||||
case "fail2ban":
|
||||
case "netfilter":
|
||||
// 0 is first record, so empty is fine
|
||||
if (isset($extra)) {
|
||||
$extra = preg_replace('/[^\d\-]/i', '', $extra);
|
||||
$logs = get_logs('fail2ban-mailcow', $extra);
|
||||
$logs = get_logs('netfilter-mailcow', $extra);
|
||||
}
|
||||
else {
|
||||
$logs = get_logs('fail2ban-mailcow');
|
||||
$logs = get_logs('netfilter-mailcow');
|
||||
}
|
||||
if (isset($logs) && !empty($logs)) {
|
||||
echo json_encode($logs, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
||||
|
Reference in New Issue
Block a user