mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/stunnel - fix regression caused by changed parent save() method (https://github.com/opnsense/core/commit/e36123c99f4ff2a518a927f1807be51186f78577)
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user