]> PHS Git Server - phs-api.git/commitdiff
Adding available clients to VPN.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 13:53:13 +0000 (08:53 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 13:53:13 +0000 (08:53 -0500)
src/controllers/vpn.controller.js

index b3da89012b7119e6ea4efba30ea5be962dfabc69..e1321d6b7b7c41fded1fdd55578b3349c98a7960 100644 (file)
@@ -147,7 +147,7 @@ module.exports = {
     const conn = new Client();
     conn.on( 'ready', () => {
       const commands = [
-        `ls /etc/openvpn/ccd 2>/dev/null || true`,
+        `ls /etc/openvpn/ccd/* 2>/dev/null || true`,
         `ls /etc/openvpn/easy-rsa/pki/issued/*.crt 2>/dev/null || true`,
       ];
       conn.exec( commands.join( ' && ' ), ( err, stream ) => {