From ef2075f22ca2beb80d87eb581d930c950ac412a7 Mon Sep 17 00:00:00 2001 From: Jared Hendrickson Date: Sat, 7 Dec 2024 20:26:26 -0700 Subject: [PATCH] fix: don't use / as root path in CARP model --- pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CARP.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CARP.inc b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CARP.inc index 9292a7346..2b5c20f24 100644 --- a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CARP.inc +++ b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CARP.inc @@ -69,7 +69,7 @@ class CARP extends Model { public function get_carp_internal(): array { return [ 'enable' => $this->is_carp_enabled(), - 'maintenance_mode' => $this->is_config_enabled('/', 'virtualip_carp_maintenancemode'), + 'maintenance_mode' => $this->is_config_enabled('', 'virtualip_carp_maintenancemode'), ]; }