From: <abe...@us...> - 2017-03-25 14:30:41
|
Revision: 8232 http://sourceforge.net/p/astlinux/code/8232 Author: abelbeck Date: 2017-03-25 14:30:39 +0000 (Sat, 25 Mar 2017) Log Message: ----------- web interface, Status tab, OpenVPN Server Status, adjust for new 'Virtual IPv6 Address' column with OpenVPN 2.4 . Thanks Michael. Modified Paths: -------------- branches/1.0/package/webinterface/altweb/common/status.inc Modified: branches/1.0/package/webinterface/altweb/common/status.inc =================================================================== --- branches/1.0/package/webinterface/altweb/common/status.inc 2017-03-24 20:39:30 UTC (rev 8231) +++ branches/1.0/package/webinterface/altweb/common/status.inc 2017-03-25 14:30:39 UTC (rev 8232) @@ -454,16 +454,18 @@ $status['header']['CommonName'] = $linetokens[2]; $status['header']['RealAddr'] = $linetokens[3]; $status['header']['VirtAddr'] = $linetokens[4]; - $status['header']['BytesRcv'] = $linetokens[5]; - $status['header']['BytesSnd'] = $linetokens[6]; - $status['header']['Since'] = $linetokens[7]; + $status['header']['Virt6Addr'] = $linetokens[5]; + $status['header']['BytesRcv'] = $linetokens[6]; + $status['header']['BytesSnd'] = $linetokens[7]; + $status['header']['Since'] = $linetokens[8]; } elseif ($linetokens[0] === "CLIENT_LIST") { $status['clients'][$cid]['CommonName'] = $linetokens[1]; $status['clients'][$cid]['RealAddr'] = $linetokens[2]; $status['clients'][$cid]['VirtAddr'] = $linetokens[3]; - $status['clients'][$cid]['BytesRcv'] = $linetokens[4]; - $status['clients'][$cid]['BytesSnd'] = $linetokens[5]; - $status['clients'][$cid]['Since'] = $linetokens[6]; + $status['clients'][$cid]['Virt6Addr'] = $linetokens[4]; + $status['clients'][$cid]['BytesRcv'] = $linetokens[5]; + $status['clients'][$cid]['BytesSnd'] = $linetokens[6]; + $status['clients'][$cid]['Since'] = $linetokens[7]; $cid++; } } @@ -821,6 +823,7 @@ echo "<td>", $openvpn['header']['CommonName'], "</td>"; echo "<td>", $openvpn['header']['RealAddr'], "</td>"; echo "<td>", $openvpn['header']['VirtAddr'], "</td>"; + echo "<td>", $openvpn['header']['Virt6Addr'], "</td>"; echo "<td>", $openvpn['header']['BytesRcv'], "</td>"; echo "<td>", $openvpn['header']['BytesSnd'], "</td>"; echo "<td>", $openvpn['header']['Since'], "</td>"; @@ -829,6 +832,7 @@ echo "<td>", $openvpn['clients'][$i]['CommonName'], "</td>"; echo "<td>", $openvpn['clients'][$i]['RealAddr'], "</td>"; echo "<td>", $openvpn['clients'][$i]['VirtAddr'], "</td>"; + echo "<td>", $openvpn['clients'][$i]['Virt6Addr'], "</td>"; echo "<td>", $openvpn['clients'][$i]['BytesRcv'], "</td>"; echo "<td>", $openvpn['clients'][$i]['BytesSnd'], "</td>"; echo "<td>", $openvpn['clients'][$i]['Since'], "</td>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |