From: charleswrayjr Date: Mon, 8 Sep 2025 16:00:49 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/%7B%60$%7BAPI_BASE_URL%7D/file/$%7Bf.id%7D/%7B?a=commitdiff_plain;h=9b1c8c17b8ed49e0923fbd496623f8c1e8eb06a0;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 60115d0..05a1fb9 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -93,6 +93,7 @@ module.exports = { const eIndex = lines.findIndex( line => line.startsWith( 'GLOBAL STATS' ) ); const C = [...lines].slice(sIndex +1, mIndex).filter( line => line.trim() ); const R = [...lines].slice(mIndex +2, eIndex).filter( line => line.trim() ); + console.log('clients: ', C, ' routes: ', R ); const clients = C.slice( sIndex + 1, mIndex ).map( line => { const parts = line.split( ',' ); const vLine = R.find( l => l.includes( parts[0] ) && l !== line );