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

index ddda58d0481f724b96ce79c6a094e6977e1e6776..f75c092d00c2f226669aa302671c0b60925275bf 100644 (file)
@@ -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+)/ );