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

index c1338310ead590fc6b54aa3380fdf39e56252354..fd0756f76911f2b940a567ec49100323b780338d 100644 (file)
@@ -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();