From 885b79f06fcfda185880ab59e0d929ed5983d6dd Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 17 May 2019 11:21:25 +0200 Subject: [PATCH] [Web] Add function to read F2B data via API --- data/web/json_api.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/web/json_api.php b/data/web/json_api.php index 45963ec6..fea4565b 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -819,6 +819,14 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u break; } break; + case "fail2ban": + switch ($object) { + default: + $data = fail2ban('get'); + process_get_return($data); + break; + } + break; case "resource": switch ($object) { case "all":