diff --git a/security/tor/Makefile b/security/tor/Makefile index b6d00b634..28d460a1a 100644 --- a/security/tor/Makefile +++ b/security/tor/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= tor -PLUGIN_VERSION= 0.1 +PLUGIN_VERSION= 0.2 PLUGIN_COMMENT= The Onion Router PLUGIN_DEPENDS= tor PLUGIN_MAINTAINER= franz.fabian.94@gmail.com diff --git a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/Api/ServiceController.php b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/Api/ServiceController.php index 8be3d5db0..0846d2059 100644 --- a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/Api/ServiceController.php +++ b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/Api/ServiceController.php @@ -148,7 +148,7 @@ class ServiceController extends ApiControllerBase $backend->configdRun('template reload OPNsense/Tor'); // (re)start daemon - if ($general->enabled->__toString() == 1) { + if ($general->enabled->__toString() == '1') { $this->startAction(); } diff --git a/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/general.volt b/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/general.volt index ab1db2e0a..db6512e42 100644 --- a/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/general.volt +++ b/security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/general.volt @@ -30,6 +30,20 @@