refactor: move ipsec_conid to PvEnv class

This commit is contained in:
Ely Deckers 2022-11-27 15:24:06 +01:00
parent 5265b64ca3
commit 88c7cb2abf
1 changed files with 6 additions and 1 deletions

View File

@ -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(