From cbfd0754f31eec1ed7cd75ef261d0b7a51ddecbf Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 1 Jan 2017 11:59:46 -0500 Subject: Add IPv6 virtual address to SSL/TLS client output, formatting corrections/enhancement for SSL/TLS client and server. Ticket #2766 --- src/etc/inc/openvpn.inc | 4 +++ src/usr/local/www/status_openvpn.php | 52 +++++++++++++++++++++++------------- 2 files changed, 37 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc index d48e6f6..e34904f 100644 --- a/src/etc/inc/openvpn.inc +++ b/src/etc/inc/openvpn.inc @@ -1543,6 +1543,10 @@ function openvpn_get_client_status($client, $socket) { $client['connect_time'] = date("D M j G:i:s Y", $list[0]); $client['virtual_addr'] = $list[3]; $client['remote_host'] = $list[4]; + $client['remote_port'] = $list[5]; + $client['local_host'] = $list[6]; + $client['local_port'] = $list[7]; + $client['virtual_addr6'] = $list[8]; } if (strstr($line, "CONNECTING")) { $client['status'] = "connecting"; diff --git a/src/usr/local/www/status_openvpn.php b/src/usr/local/www/status_openvpn.php index 1722db6..3139a73 100644 --- a/src/usr/local/www/status_openvpn.php +++ b/src/usr/local/www/status_openvpn.php @@ -102,11 +102,9 @@ include("head.inc"); ?> - - + - - + @@ -116,13 +114,25 @@ include("head.inc"); ?> foreach ($server['conns'] as $conn): ?> "> - + + + +
+ + + + + - - + + + +
+ + + - - + / - - + @@ -244,8 +253,7 @@ include("head.inc"); ?> - - + / @@ -282,10 +290,10 @@ include("head.inc"); ?> + - - + @@ -298,10 +306,16 @@ include("head.inc"); ?> - - - - + + + +
: + + +
+ + +
: / -- cgit v1.1