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

index 620c219253782b4284cfc200d9fa43ea29c23d55..642126a2adde6c18e748ef8ee9eb7f95fba95074 100644 (file)
@@ -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' ) );