diff options
author | jim-p <jimp@pfsense.org> | 2010-08-16 16:42:46 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-16 16:42:46 -0400 |
commit | 41be629f09256ea9b0aafd880a4d638a423ccd28 (patch) | |
tree | 637d29c4f44422dac2a8e3aec0471506119dee43 | |
parent | 036371d20156f2dd6550a5ca46c2351c8c65939e (diff) | |
download | pfsense-41be629f09256ea9b0aafd880a4d638a423ccd28.zip pfsense-41be629f09256ea9b0aafd880a4d638a423ccd28.tar.gz |
Print a notice that OpenVPN status information is not available for shared key servers.
-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> |