From 60ae3af6cd5db0c54a7cc41f77acd4494c7402b1 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Tue, 9 Sep 2025 08:47:21 -0500 Subject: [PATCH] Adding available clients to VPN. --- src/controllers/vpn.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index ddda58d..f75c092 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -171,7 +171,7 @@ module.exports = { // Process .ccd files for static IPs for (const ccdFile of ccdFiles) { - const clientName = path.basename( ccdFile, '.ccd' ); + const clientName = path.basename( ccdFile, '' ); try { const ccdContent = fs.readFileSync( ccdFile, 'utf8' ); const staticIpMatch = ccdContent.match( /ifconfig-push (\S+)/ ); -- 2.43.0