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

index 272fd316df7971db960be8e3df47010c537393a8..31e64e7f4e5cc0dbd57e537803bee53a1c8edd9f 100644 (file)
@@ -167,7 +167,7 @@ module.exports = {
           console.log(output);
           const clients = [];
           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 !== '');
+          const crtFiles = output.split('\n').filter(line => line.endsWith('.crt')).filter( l => !l.startsWith('.') && l !== ''  && !l.endsWith('server.crt'));
 
           console.log(ccdFiles);
           console.log(crtFiles);