From: charleswrayjr Date: Mon, 8 Sep 2025 03:48:07 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=3d8b51a271c2d960beddf872b4f7ce27b589bee5;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index b8dd6fc..395ae58 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -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();