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

index 693054035b9d1a48e71fb8890007b752757f161e..272fd316df7971db960be8e3df47010c537393a8 100644 (file)
@@ -166,7 +166,7 @@ module.exports = {
           }
           console.log(output);
           const clients = [];
-          const ccdFiles = output.split('\n').filter(line => !line.endsWith('.crt')).filter( l => !l.startsWith('.') && l !== '');
+          const ccdFiles = output.split('\n').filter(line => !line.endsWith('.crt')).filter( l => !l.startsWith('.') && l !== '' && !l.endsWith('server'));
           const crtFiles = output.split('\n').filter(line => line.endsWith('.crt')).filter( l => !l.startsWith('.') && l !== '');
 
           console.log(ccdFiles);