]> PHS Git Server - phs-api.git/commitdiff
Adding disconnect, getStatus, and restart to the vpn.controller.js and associated...
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 19:09:39 +0000 (14:09 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 19:09:39 +0000 (14:09 -0500)
src/controllers/vpn.controller.js

index 2ef9625467849506200b29065edc582b4640e96a..8b6b0d387dd6ebe1cd3cc78299fa1c84de98bc1e 100644 (file)
@@ -347,7 +347,7 @@ module.exports = {
         } );
       }).on('error', (err) => {
         next(new createError(500, `SSH connection failed: ${err.message}`))
-      });
+      }).connect(sshConfig);
     } catch (error) {
       return next(new createError(500, `Failed to check VPN status: ${error.message}`));
     }