From: charleswrayjr Date: Mon, 8 Sep 2025 18:51:50 +0000 (-0500) Subject: Fixing closures on app.js file. X-Git-Url: https://git.phasecustomsoft.com/static/git-logo.png?a=commitdiff_plain;h=82179a019181d5eb2760b8153f24b3564fc8b702;p=phs-api.git Fixing closures on app.js file. --- 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