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

index 6f7b04abad3682f5944c03e6f3aef20d8e71daf5..d2ddf8e016b7f982b150ece21cfd06ac0b712396 100644 (file)
@@ -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( ',' );