]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 04:15:56 +0000 (23:15 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 04:15:56 +0000 (23:15 -0500)
src/controllers/vpn.controller.js

index 8d3cb0b48fb7034050ededfaa6f030d703f58e9a..aa5afec9e62eeedfa3ce0bc110a8059671624478 100644 (file)
@@ -78,10 +78,10 @@ module.exports = {
     const clients = [];
     let inClientList = false;
 
-    console.log(statusContent);
+    console.log('status content: ', statusContent);
 
     statusContent.split('\n').forEach(line => {
-      console.log(line);
+      console.log('line: ', line);
       if (line.startsWith('Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since')) {
         inClientList = true;
         return;
@@ -92,7 +92,7 @@ module.exports = {
       }
       if (inClientList) {
         const [common_name, real_address, bytes_received, bytes_sent, connected_since] = line.split(',');
-        console.log(common_name, real_address, bytes_received, bytes_sent, connected_since);
+        console.log('client info: ', common_name, real_address, bytes_received, bytes_sent, connected_since);
         clients.push({
           common_name,
           virtual_address: real_address.split(':')[0],