From ff10cbefc88067bcf96ce56c0cfc860183a64b1e Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 7 Feb 2025 22:44:55 +0400 Subject: [PATCH] vless: fix reset stats --- app/bot.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 8f64590..5a6d891 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5406,9 +5406,14 @@ DNS-over-HTTPS with IP: public function resetXrStats() { - $this->restartXray($this->getXray()); + $x = $this->getXray(); $p = $this->getPacConf(); unset($p['vlessstat']); + foreach ($x['inbounds'][0]['settings']['clients'] as $k => $v) { + unset($x['inbounds'][0]['settings']['clients'][$k]['global']); + unset($x['inbounds'][0]['settings']['clients'][$k]['session']); + } + $this->restartXray($x); $this->setPacConf($p); $this->xray(); }