]> PHS Git Server - phs-api.git/commitdiff
Adding more logging to disconnect method.
authorcharleswrayjr <charleswrayjr@gmail.com>
Wed, 10 Sep 2025 02:57:11 +0000 (21:57 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Wed, 10 Sep 2025 02:57:11 +0000 (21:57 -0500)
src/controllers/vpn.controller.js

index bb0864247cbe6b3e338ea2e5b75cf5ef5069b2d3..0e364c09b3a077168db8f9878c0667bdfb707b31 100644 (file)
@@ -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();