From: charleswrayjr Date: Tue, 9 Sep 2025 19:06:22 +0000 (-0500) Subject: Adding disconnect, getStatus, and restart to the vpn.controller.js and associated... X-Git-Url: https://git.phasecustomsoft.com/static/gitweb.js?a=commitdiff_plain;h=e06adb5e8d7fce0f91559e5ec2a7968f00a0f99c;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 1a33f0e..2ef9625 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -320,7 +320,7 @@ module.exports = { logger.warn( 'Getting VPN status'); try { const conn = new Client(); - conn.on('ready', () => { + conn.on( 'ready', () => { logger.warn('Connected to OpenVPN server'); const command = `systemctl is-active openvpn@server`; logger.warn(command);