From 697ae5f2779d4c598b95b6f08c74d2d2a0b8de82 Mon Sep 17 00:00:00 2001 From: VictorRobellini <39597627+VictorRobellini@users.noreply.github.com> Date: Mon, 26 Apr 2021 23:02:58 -0400 Subject: [PATCH] Fixed the default gw messup --- plugins/telegraf_gateways.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/telegraf_gateways.php b/plugins/telegraf_gateways.php index 326889b..efe4d1e 100644 --- a/plugins/telegraf_gateways.php +++ b/plugins/telegraf_gateways.php @@ -26,7 +26,7 @@ foreach ($a_gateways as $i => $gateway) { $gwdescr = $gateway["descr"]; $defaultgw = $gateway['isdefaultgw']; - if (!isset($gateway['isdefaultgw'])) { + if (isset($gateway['isdefaultgw'])) { $defaultgw = "1"; } else { $defaultgw = "0";