From: charleswrayjr Date: Mon, 8 Sep 2025 16:23:02 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/%7B%60$%7BAPI_BASE_URL%7D/file/$%7Bf.id%7D/%7B?a=commitdiff_plain;h=7ba0e640ff267b572a3157b64e4437e3afa0aa78;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index a12c06e..7740d6a 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -120,7 +120,7 @@ module.exports = { getClients:async ( req, res, next ) => { const conn = new Client(); conn.on( 'ready', () => { - const error = new createError( 500, `SSH connection failed:` ); + const error = new createError( 400, `SSH connection failed:` ); next( error ); /*const command = `cat /var/log/openvpn/openvpn-status.log`; conn.exec( command, ( err, stream ) => {