From: charleswrayjr Date: Tue, 9 Sep 2025 14:07:52 +0000 (-0500) Subject: Adding available clients to VPN. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=20f6ab3157d2e9f17a13856f97483476e712423a;p=phs-api.git Adding available clients to VPN. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 6930540..272fd31 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -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);