From: charleswrayjr Date: Mon, 8 Sep 2025 16:08:55 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/static/git-logo.png?a=commitdiff_plain;h=e8c14be1bc34227ce23277a30689c54adecde4dc;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 620c219..642126a 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -87,7 +87,6 @@ module.exports = { stream.on( 'close', ( code ) => { conn.end(); if (code === 0) { - const parseVpnStatus = (output) => { // Split once and reuse const lines = output.split('\n').map(line => line.trim()).filter(Boolean); @@ -122,7 +121,6 @@ module.exports = { } res.json(clientsMap.values()); - }; /*const lines = output.split( '\n' ); const sIndex = lines.findIndex( line => line.startsWith( 'Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since' ) ); const mIndex = lines.findIndex( line => line.startsWith( 'ROUTING TABLE' ) );