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]); } /**