From 82179a019181d5eb2760b8153f24b3564fc8b702 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 8 Sep 2025 13:51:50 -0500 Subject: [PATCH] Fixing closures on app.js file. --- src/controllers/vpn.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 6faa0d6..d725d8a 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -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 -- 2.43.0