]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 04:34:15 +0000 (23:34 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 04:34:15 +0000 (23:34 -0500)
src/controllers/vpn.controller.js

index 0716a1533e892a1445b782babede81261c4110fb..cb3f9ad5d3972679b7dacb3dc419bb70a6a70640 100644 (file)
@@ -96,7 +96,7 @@ module.exports = {
               console.log( 'parts: ', parts );
               const vLine = lines.find( l => l.includes( parts[0] ) && l !== line );
               console.log( 'vLine: ', vLine );
-              return { name:parts[0], ip:parts[1], connectedSince:parts[4] };
+              return { name:parts[0], ip:parts[1], virtual_ip:vLine.split( ',' )[0], connectedSince:parts[4] };
             } );
             /*const clients = output.split( '\n' ).filter( line => line.startsWith( 'Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since' ) ).map( line => {
               const parts = line.split( ',' );