From 85ab3eb036c0f4005fba8b0fbb4a8061605202dc Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Tue, 9 Sep 2025 14:09:39 -0500 Subject: [PATCH] Adding disconnect, getStatus, and restart to the vpn.controller.js and associated routes in vpn.routes.js. --- 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 2ef9625..8b6b0d3 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -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}`)); } -- 2.43.0