From: charleswrayjr Date: Mon, 8 Sep 2025 15:54:56 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=34778e87ff48ea74d312caf9321618e8fc403b42;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 6f7b04a..d2ddf8e 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -92,7 +92,7 @@ module.exports = { const sIndex = lines.findIndex( line => line.startsWith( 'Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since' ) ); const eIndex = lines.findIndex( line => line.startsWith( 'ROUTING TABLE' ) ); const C = [...lines].slice(sIndex +1, eIndex).filter( line => line.trim() ); - const R = [...lines].slice(eIndex + lines.length).filter( line => line.trim() ); + const R = [...lines].slice(eIndex +2, lines.length).filter( line => line.trim() ); console.log('clients: ', C, ' routes: ', R ); const clients = lines.slice( sIndex + 1, eIndex ).map( line => { const parts = line.split( ',' );