From 88c7cb2abf47a8c06eddd029b0557898faea8f0f Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Sun, 27 Nov 2022 15:24:06 +0100 Subject: [PATCH] refactor: move ipsec_conid to PvEnv class --- pfsense_zbx.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pfsense_zbx.php b/pfsense_zbx.php index e3827ec..bd82c12 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -213,6 +213,11 @@ class PfEnv return self::call_pfsense_method_with_same_name_and_arguments(func_get_args()); } + public static function ipsec_conid() + { + return self::call_pfsense_method_with_same_name_and_arguments(func_get_args()); + } + public static function get_pkg_info() { return self::call_pfsense_method_with_same_name_and_arguments(func_get_args()); @@ -1232,7 +1237,7 @@ class Command $cname = $id_name ? "con$id_name" : "con{$ike_id}00000"; } else { - $cname = ipsec_conid($ph1ent); + $cname = PfEnv::ipsec_conid($ph1ent); } return array_merge(