]> 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:06:22 +0000 (14:06 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 19:06:22 +0000 (14:06 -0500)
src/controllers/vpn.controller.js

index 1a33f0e1cab8bd79bfa78ccecc0dae71c44ad23d..2ef9625467849506200b29065edc582b4640e96a 100644 (file)
@@ -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);