From 621fb08467abad183a1a02c953d9bb70bbe1a2cf Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 7 Feb 2025 00:47:52 +0400 Subject: [PATCH] vless stats fix --- app/bot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 87fdac2..8f64590 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1351,8 +1351,8 @@ class Bot try { $x = $this->getXray(); $p = $this->getPacConf(); - $td = json_decode($this->ssh('xray api stats --server=127.0.0.1:8080 -name "inbounds>>>vless_tls>>>traffic>>>downlink" 2>&1', 'xr'), true)['stat']['value'] ?: 0; - $tu = json_decode($this->ssh('xray api stats --server=127.0.0.1:8080 -name "inbounds>>>vless_tls>>>traffic>>>uplink" 2>&1', 'xr'), true)['stat']['value'] ?: 0; + $td = json_decode($this->ssh('xray api stats --server=127.0.0.1:8080 -name "inbound>>>vless_tls>>>traffic>>>downlink" 2>&1', 'xr'), true)['stat']['value'] ?: 0; + $tu = json_decode($this->ssh('xray api stats --server=127.0.0.1:8080 -name "inbound>>>vless_tls>>>traffic>>>uplink" 2>&1', 'xr'), true)['stat']['value'] ?: 0; $p['vlessstat']['session']['download'] = $td; $p['vlessstat']['session']['upload'] = $tu; $this->setPacConf($p);