summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-02 19:22:24 +0545
committerPhil Davis <phil.davis@inf.org>2016-04-02 19:22:24 +0545
commit1aa20aa36c46d73dd1ba2676521428583ccbae3e (patch)
tree21a56723e2455f3958a3ab7a5437e0e58ade2df1
parent83354deaa56b7dd2336b37db5b7733494015d625 (diff)
downloadpfsense-1aa20aa36c46d73dd1ba2676521428583ccbae3e.zip
pfsense-1aa20aa36c46d73dd1ba2676521428583ccbae3e.tar.gz
Remove dead note from OpenVPN widget
This note is never going to display, because $DisplayNote is only set in a function and is not global. In any case, I don't think the message is true (maybe it was true in the past?).
-rw-r--r--src/etc/inc/openvpn.inc1
-rw-r--r--src/usr/local/www/widgets/widgets/openvpn.widget.php4
2 files changed, 0 insertions, 5 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc
index e2ae7fb..502d770 100644
--- a/src/etc/inc/openvpn.inc
+++ b/src/etc/inc/openvpn.inc
@@ -1614,7 +1614,6 @@ function openvpn_get_client_status($client, $socket) {
fclose($fp);
} else {
- $DisplayNote=true;
$client['remote_host'] = gettext("Unable to contact daemon");
$client['virtual_addr'] = gettext("Service not running?");
$client['bytes_recv'] = 0;
diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php
index f23e95c..756b235 100644
--- a/src/usr/local/www/widgets/widgets/openvpn.widget.php
+++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php
@@ -255,10 +255,6 @@ $clients = openvpn_get_active_clients();
<?php
}
-if ($DisplayNote) {
- echo "<br /><b>". gettext("NOTE") . ":</b> ". gettext("You need to bind each OpenVPN client to enable its management daemon: use 'Local port' setting in the OpenVPN client screen");
-}
-
if ((empty($clients)) && (empty($servers)) && (empty($sk_servers))) {
echo gettext("No OpenVPN instances defined");
}
OpenPOWER on IntegriCloud