timer singbox user fix

This commit is contained in:
mercury
2024-04-28 23:08:48 +04:00
parent c1a637ac29
commit 7316d49af8
+2 -2
View File
@@ -1106,8 +1106,8 @@ class Bot
public function shutdownClientXr()
{
try {
$c = $this->getXray();
foreach ($c['inbounds'][0]['users'] as $k => $v) {
$p = $this->getPacConf();
foreach ($p['xrusers'] as $k => $v) {
if (!empty($v['time']) && ($v['time'] < time())) {
$this->switchXr($k, 1);
}