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

index 60115d078c79dd3c39a675fe6f9ad52964cb31f8..05a1fb975b9a4d044d44c0385c83548de60dfb42 100644 (file)
@@ -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 );