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

index 374c8be674ff148b42e7d88bb5281c8dc46a82d4..6f7b04abad3682f5944c03e6f3aef20d8e71daf5 100644 (file)
@@ -87,6 +87,7 @@ module.exports = {
         stream.on( 'close', ( code ) => {
           conn.end();
           if (code === 0) {
+            console.log(output);
             const lines = output.split( '\n' );
             const sIndex = lines.findIndex( line => line.startsWith( 'Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since' ) );
             const eIndex = lines.findIndex( line => line.startsWith( 'ROUTING TABLE' ) );