From: charleswrayjr Date: Wed, 10 Sep 2025 02:57:11 +0000 (-0500) Subject: Adding more logging to disconnect method. X-Git-Url: https://git.phasecustomsoft.com/static/git-favicon.png?a=commitdiff_plain;h=261af97f4f984831d3057478bb700bfc5b71b813;p=phs-api.git Adding more logging to disconnect method. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index bb08642..0e364c0 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -278,7 +278,7 @@ module.exports = { client.on('data', async (data) => { const response = data.toString(); logger.warn(response); - if (response.includes('SUCCESS: client-kill command succeeded')) { + if (response.includes('SUCCESS:')) { if (duration && clientIp) { // Add iptables rule to block client IP for duration const conn = new Client();