From 34778e87ff48ea74d312caf9321618e8fc403b42 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 8 Sep 2025 10:54:56 -0500 Subject: [PATCH] Testing vpn paths. --- src/controllers/vpn.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( ',' ); -- 2.43.0