From: charleswrayjr Date: Mon, 8 Sep 2025 16:36:47 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=2101c7d2f9c5326e6dff75441d63f9bb310c0602;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index c60f03e..2847f11 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -10,7 +10,8 @@ const parseVpnStatus = ( output ) => { // Split once and reuse const lines = output.split( '\n' ).map( line => line.trim() ).filter( Boolean ); - logger.debug( [ 'lines:', lines ].join( ' ' ) ); + const lValues = [ 'lines:', lines ].join( ' ' ); + logger.debug( lValues ); // Find indices using a single pass let sIndex = -1, mIndex = -1, eIndex = -1; lines.forEach( ( line, i ) => {