From a186956c52eb5716b92f28a99177e46e6457a547 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 26 Dec 2023 12:38:23 +0100 Subject: [PATCH] security/stunnel - fix regression caused by changed parent save() method (https://github.com/opnsense/core/commit/e36123c99f4ff2a518a927f1807be51186f78577) --- security/stunnel/Makefile | 2 +- .../controllers/OPNsense/Stunnel/Api/ServicesController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile index d771947df..a7e42ae0d 100644 --- a/security/stunnel/Makefile +++ b/security/stunnel/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= stunnel PLUGIN_VERSION= 1.0.5 -PLUGIN_REVISION= 2 +PLUGIN_REVISION= 3 PLUGIN_COMMENT= Stunnel TLS proxy PLUGIN_MAINTAINER= ad@opnsense.org PLUGIN_DEPENDS= stunnel diff --git a/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/Api/ServicesController.php b/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/Api/ServicesController.php index 0083aec56..5db04eb87 100644 --- a/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/Api/ServicesController.php +++ b/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/Api/ServicesController.php @@ -35,7 +35,7 @@ class ServicesController extends ApiMutableModelControllerBase protected static $internalModelName = 'stunnel'; protected static $internalModelClass = 'OPNsense\Stunnel\Stunnel'; - protected function save() + protected function save($validateFullModel = false, $disable_validation = false) { // hook service enable status on enabled tunnels $this->getModel()->general->enabled = "0"; @@ -45,7 +45,7 @@ class ServicesController extends ApiMutableModelControllerBase break; } } - return parent::save(); + return parent::save($validateFullModel, $disable_validation); } public function searchItemAction()