mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/ftp-proxy: fix two issues for #52
This commit is contained in:
+4
-4
@@ -2,7 +2,6 @@
|
||||
|
||||
/**
|
||||
* Copyright (C) 2016 EURO-LOG AG
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -25,7 +24,6 @@
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace OPNsense\FtpProxy\Api;
|
||||
@@ -34,7 +32,6 @@ use \OPNsense\Base\ApiControllerBase;
|
||||
use \OPNsense\Core\Backend;
|
||||
use \OPNsense\FtpProxy\FtpProxy;
|
||||
|
||||
|
||||
/**
|
||||
* Class ServiceController
|
||||
* @package OPNsense\FtpProxy
|
||||
@@ -166,7 +163,10 @@ class ServiceController extends ApiControllerBase
|
||||
return trim($backend->configdRun('template reload OPNsense/FtpProxy'));
|
||||
}
|
||||
if ($action == 'reload') {
|
||||
return trim($backend->configdRun("ftpproxy reload"));
|
||||
$ret = trim($backend->configdRun('ftpproxy reload'));
|
||||
/* also requires anchors in rules: */
|
||||
$backend->configdRun('filter reload');
|
||||
return $ret;
|
||||
}
|
||||
return "Wrong action defined";
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<model>
|
||||
<mount>//OPNsense/ftpproxies</mount>
|
||||
<version>1.0.0</version>
|
||||
<description>Ftp Proxy settings</description>
|
||||
<items>
|
||||
<ftpproxy type="ArrayField">
|
||||
|
||||
Reference in New Issue
Block a user