diff --git a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php index d50813017..eec784f04 100644 --- a/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php +++ b/security/tor/src/opnsense/mvc/app/controllers/OPNsense/Tor/IndexController.php @@ -1,6 +1,6 @@ view->title = gettext("The Onion Router"); $this->view->general = $this->getForm("general"); $this->view->toracl = $this->getForm("acl_sockspolicy"); $this->view->hidden_service = $this->getForm("hidden_service"); @@ -54,20 +50,19 @@ class IndexController extends \OPNsense\Base\IndexController public function infoAction() { - $this->view->title = gettext("The Onion Router - Information"); $this->view->pick('OPNsense/Tor/info'); } + public function diagnosticsAction() { $general = new General(); - $this->view->title = gettext("The Onion Router - Diagnostics"); if ($this->is_tor_running() && (int)((string)$general->control_port) > 0) { $this->view->pick('OPNsense/Tor/diagnostics'); - } - else { + } else { $this->view->pick('OPNsense/Tor/error'); } } + private function is_tor_running() { $status = (new Api\ServiceController())->statusAction();