mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: prevent the deletion of referenced items
This commit is contained in:
@@ -27,6 +27,7 @@ Added:
|
||||
Fixed:
|
||||
* prevent service outage by aborting "Apply" when configtest fails
|
||||
* fix direct links to individual statistics tabs
|
||||
* prevent the deletion of items that are still referenced elsewhere (core/#1897)
|
||||
|
||||
Changed:
|
||||
* change default SSL version to TLSv1.2 (ssl-min-ver)
|
||||
|
||||
+1
@@ -45,6 +45,7 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
protected static $internalServiceTemplate = 'OPNsense/HAProxy';
|
||||
protected static $internalServiceEnabled = 'general.enabled';
|
||||
protected static $internalServiceName = 'haproxy';
|
||||
protected static $internalModelUseSafeDelete = true;
|
||||
|
||||
/**
|
||||
* run syntax check for haproxy configuration
|
||||
|
||||
+1
@@ -44,6 +44,7 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
{
|
||||
protected static $internalModelName = 'haproxy';
|
||||
protected static $internalModelClass = '\OPNsense\HAProxy\HAProxy';
|
||||
protected static $internalModelUseSafeDelete = true;
|
||||
|
||||
public function getFrontendAction($uuid = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user