]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 03:48:07 +0000 (22:48 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 03:48:07 +0000 (22:48 -0500)
src/controllers/vpn.controller.js

index b8dd6fc240c4e809a2a7b53bf670f28cdeeb1b65..395ae58bcf60c2b229b023e2f63f66086021bb6c 100644 (file)
@@ -75,7 +75,7 @@ module.exports = {
   }, getClients:async ( req, res, next ) => {
     const conn = new Client();
     conn.on( 'ready', () => {
-      const command = `cat /var/log/openvpn/openvpn-status.log`;
+      const command = `cat /var/log/openvpn/openvpn-status.log | grep "OpenVPN CLIENT LIST`;
       conn.exec( command, ( err, stream ) => {
         if (err) {
           conn.end();