From 7ba0e640ff267b572a3157b64e4437e3afa0aa78 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 8 Sep 2025 11:23:02 -0500 Subject: [PATCH] Testing vpn paths. --- src/controllers/vpn.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) => { -- 2.43.0