From a8a203041fd901dd788f6ca0474f2c70d06503ed Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 11 Feb 2025 22:48:47 +0400 Subject: [PATCH] vless stats: fix reset user stats --- app/bot.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/bot.php b/app/bot.php index 760bdf4..eb3301f 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5415,10 +5415,7 @@ DNS-over-HTTPS with IP: public function resetXrUser($i) { $c = $this->getXrayStats(); - $c['clients'][$i]['global'] = [ - 'download' => 0, - 'upload' => 0, - ]; + unset($c['users'][$i]); $this->restartXray($this->getXray()); $this->userXr($i); }