]> PHS Git Server - phs-api.git/commitdiff
Adding disconnect, getStatus, and restart to the vpn.controller.js and associated...
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 18:43:09 +0000 (13:43 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 18:43:09 +0000 (13:43 -0500)
src/controllers/vpn.controller.js

index b890e635cf87f10092db5b814f5954c2cd292e54..891b400c2d94af5849f01c720c0e8a390dab84e9 100644 (file)
@@ -326,6 +326,7 @@ module.exports = {
             conn.end();
             return next( new createError( 500, `SSH command failed: ${ err.message }` ) );
           }
+          console.log(stream.data);
           let output = '';
           stream.on( 'data', ( data ) => (output += data) );
           stream.stderr.on( 'data', ( data ) => (output += data) );