From: charleswrayjr Date: Tue, 9 Sep 2025 18:59:54 +0000 (-0500) Subject: Adding disconnect, getStatus, and restart to the vpn.controller.js and associated... X-Git-Url: https://git.phasecustomsoft.com/static/git-logo.png?a=commitdiff_plain;h=37000c8da3067d48ad7feb903279ad6142cf0eef;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 c133831..fd0756f 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -320,7 +320,9 @@ module.exports = { try { const conn = new Client(); conn.on('ready', () => { + logger.warn('Connected to OpenVPN server'); const command = `systemctl is-active openvpn@server`; + logger.warn(command); conn.exec( command, ( err, stream ) => { if (err) { conn.end();