From: charleswrayjr Date: Tue, 9 Sep 2025 20:27:39 +0000 (-0500) Subject: Removing debug logging from getStatus method on vpn.controller.js. X-Git-Url: https://git.phasecustomsoft.com/static/gitweb.css?a=commitdiff_plain;h=39a78903e4f8ce721c03654031f99f713eea198d;p=phs-api.git Removing debug logging from getStatus method on vpn.controller.js. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index b93f3a4..a4e4d36 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -256,6 +256,7 @@ module.exports = { const clientLine = statusContent.split('\n').find(line => line.startsWith(`${clientName},`) && !line.startsWith('Virtual Address') ); + logger.warn(clientLine); if (clientLine) { const [, realAddress] = clientLine.split(','); clientIp = realAddress.split(':')[0]; @@ -263,10 +264,12 @@ module.exports = { return next(new createError(404, `Client ${clientName} not connected`)); } + logger.warn(clientIp); + // Disconnect client via management interface const client = new net.Socket(); client.connect(7505, 'host.docker.internal', () => { - logger.info('Connected to OpenVPN management interface'); + logger.warn('Connected to OpenVPN management interface'); client.write(`client-kill ${clientName}\n`); });