From 3996432202ec4816285a7c0a7a1cfc9707d70fdc Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Tue, 22 Feb 2022 14:00:27 +0100 Subject: [PATCH] Fix gateway discovery --- pfsense_zbx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfsense_zbx.php b/pfsense_zbx.php index e6d45d9..7174903 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -438,7 +438,7 @@ class Discovery { self::print_json(array_map( fn($gw) => ["{#GATEWAY}" => $gw["name"]], - PfEnv::return_gateways_status(true))); + array_values(PfEnv::return_gateways_status(true)))); } public static function wan()