security/stunnel - fix regression caused by changed parent save() method (e36123c99f)

This commit is contained in:
Ad Schellevis 2023-12-26 12:38:23 +01:00
parent 0da31a9e95
commit a186956c52
2 changed files with 3 additions and 3 deletions

View File

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

View File

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