diff options
-rw-r--r-- | etc/inc/openvpn.inc | 1 | ||||
-rw-r--r-- | usr/local/www/status_openvpn.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index d23a6c3..c05105f 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -719,6 +719,7 @@ function openvpn_get_active_servers() { $server = array(); $server['port'] = $settings['local_port']; + $server['mode'] = $settings['mode']; if ($settings['description']) $server['name'] = "{$settings['description']} {$prot}:{$port}"; else diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index 4e0c520..729ed70 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -136,6 +136,9 @@ include("head.inc"); ?> </td> </tr> <tr> +<?php if ($server['mode'] == "p2p_shared_key"): ?> + <td>Status data is not available for shared key servers.</td> +<?php else: ?> <td> <table style="padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> @@ -182,6 +185,7 @@ include("head.inc"); ?> </table> </td> +<? endif; ?> </tr> </table> |