From: charleswrayjr Date: Tue, 9 Sep 2025 19:09:39 +0000 (-0500) Subject: Adding disconnect, getStatus, and restart to the vpn.controller.js and associated... X-Git-Url: https://git.phasecustomsoft.com/static/git-favicon.png?a=commitdiff_plain;h=85ab3eb036c0f4005fba8b0fbb4a8061605202dc;p=phs-api.git Adding disconnect, getStatus, and restart to the vpn.controller.js and associated routes in vpn.routes.js. --- 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}`)); }