]> PHS Git Server - phs-api.git/commitdiff
Fixing closures on app.js file.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 18:51:50 +0000 (13:51 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 18:51:50 +0000 (13:51 -0500)
src/controllers/vpn.controller.js

index 6faa0d6665efa3379eef5d8d8fec1b27c5434f08..d725d8ac2b604b663c516592cf6a4a4625ae3d70 100644 (file)
@@ -128,7 +128,7 @@ module.exports = {
   getClients:async ( req, res, next ) => {
     const error = new Error( 'Not implemented yet' );
     next( error );
-    const conn = new Client();
+    /*const conn = new Client();
     conn.on( 'ready', () => {
       const command = `cat /var/log/openvpn/openvpn-status.log`;
       conn.exec( command, ( err, stream ) => {
@@ -154,6 +154,6 @@ module.exports = {
     } ).on( 'error', ( err ) => {
       const error = new createError( 500, `SSH connection failed: ${ err.message }` );
       next( error );
-    } ).connect( sshConfig );
+    } ).connect( sshConfig );*/
   }
 };
\ No newline at end of file