From: charleswrayjr Date: Mon, 8 Sep 2025 04:15:56 +0000 (-0500) Subject: Testing vpn paths. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=cdc25fae8dd04189412d376e609358057690bc26;p=phs-api.git Testing vpn paths. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 8d3cb0b..aa5afec 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -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],