summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-04-02 10:39:09 -0400
committerjim-p <jimp@pfsense.org>2013-04-02 10:39:09 -0400
commit6a7230b660df51b3f3461c9169025f1a367ff4d2 (patch)
tree027aa884283dcc58e790cf7b3e7b59cf54680ae5 /usr/local
parent3c98b3f7c1d9069cf36a06c3f8f3645977b85f90 (diff)
downloadpfsense-6a7230b660df51b3f3461c9169025f1a367ff4d2.zip
pfsense-6a7230b660df51b3f3461c9169025f1a367ff4d2.tar.gz
Fix service status for OpenVPN peer-to-peer client/server instances.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/status_openvpn.php24
1 files changed, 10 insertions, 14 deletions
diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php
index 28a9765..2796261 100644
--- a/usr/local/www/status_openvpn.php
+++ b/usr/local/www/status_openvpn.php
@@ -275,7 +275,8 @@ include("head.inc"); ?>
<td class="listhdrr"><?=gettext("Virtual Addr"); ?></td>
<td class="listhdrr"><?=gettext("Remote Host"); ?></td>
<td class="listhdrr"><?=gettext("Bytes Sent"); ?></td>
- <td class="listhdrr"><?=gettext("Bytes Received"); ?></td>
+ <td class="listhdrr"><?=gettext("Bytes Rcvd"); ?></td>
+ <td class="listhdrr"><?=gettext("Svc"); ?></td>
</tr>
<?php foreach ($sk_servers as $sk_server): ?>
@@ -301,20 +302,17 @@ include("head.inc"); ?>
<td class="listr">
<?=$sk_server['bytes_recv'];?>
</td>
- </tr>
-<?php endforeach; ?>
- <tr>
- <td colspan="2" class="list" height="12">
+ <td class="listr">
<table>
<tr>
<?php $ssvc = find_service_by_openvpn_vpnid($sk_server['vpnid']); ?>
- <?= get_service_status_icon($ssvc, true, true); ?>
+ <?= get_service_status_icon($ssvc, false, true); ?>
<td><?= get_service_control_links($ssvc, true); ?></td>
</tr>
</table>
</td>
- <td colspan="5" class="list" height="12">&nbsp;</td>
</tr>
+<?php endforeach; ?>
</table>
</tr>
</table>
@@ -338,7 +336,8 @@ include("head.inc"); ?>
<td class="listhdrr"><?=gettext("Virtual Addr"); ?></td>
<td class="listhdrr"><?=gettext("Remote Host"); ?></td>
<td class="listhdrr"><?=gettext("Bytes Sent"); ?></td>
- <td class="listhdrr"><?=gettext("Bytes Received"); ?></td>
+ <td class="listhdrr"><?=gettext("Bytes Rcvd"); ?></td>
+ <td class="listhdrr"><?=gettext("Svc"); ?></td>
</tr>
<?php foreach ($clients as $client): ?>
@@ -364,20 +363,17 @@ include("head.inc"); ?>
<td class="listr">
<?=$client['bytes_recv'];?>
</td>
- </tr>
-<?php endforeach; ?>
- <tr>
- <td colspan="2" class="list" height="12">
+ <td class="listr" height="12">
<table>
<tr>
<?php $ssvc = find_service_by_openvpn_vpnid($client['vpnid']); ?>
- <?= get_service_status_icon($ssvc, true, true); ?>
+ <?= get_service_status_icon($ssvc, false, true); ?>
<td><?= get_service_control_links($ssvc, true); ?></td>
</tr>
</table>
</td>
- <td colspan="5" class="list" height="12">&nbsp;</td>
</tr>
+<?php endforeach; ?>
</table>
</tr>
</table>
OpenPOWER on IntegriCloud