]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 16:23:02 +0000 (11:23 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 16:23:02 +0000 (11:23 -0500)
src/controllers/vpn.controller.js

index a12c06e12cd1d7180f4d3e7a6ef287b72b7911cb..7740d6a92791848a7d4bad5185370ddeada1e946 100644 (file)
@@ -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 ) => {