fix: update last_handshake when collecting metrics

This commit is contained in:
infosave2007
2025-11-10 16:44:43 +03:00
parent a00868515f
commit 23075f1209
+9
View File
@@ -267,6 +267,15 @@ class ServerMonitoring
$stats['speed_up_kbps'], $stats['speed_up_kbps'],
$stats['speed_down_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]);
} }
/** /**