From 23075f12097da3e36da4af72b6133f32ee9b8a42 Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Mon, 10 Nov 2025 16:44:43 +0300 Subject: [PATCH] fix: update last_handshake when collecting metrics --- inc/ServerMonitoring.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/ServerMonitoring.php b/inc/ServerMonitoring.php index af05a74..7ac24c6 100644 --- a/inc/ServerMonitoring.php +++ b/inc/ServerMonitoring.php @@ -267,6 +267,15 @@ class ServerMonitoring $stats['speed_up_kbps'], $stats['speed_down_kbps'], ]); + + // Update last_handshake in vpn_clients table + $stmt = $db->prepare(" + UPDATE vpn_clients + SET last_handshake = NOW() + WHERE id = ? + "); + + $stmt->execute([$clientId]); } /**