test: Xray内核删除用户时尝试关闭连接

This commit is contained in:
wyx2685
2025-07-16 15:49:17 +09:00
parent 8d225f811b
commit 63d88843b6
3 changed files with 74 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ func (c *Xray) DelUsers(users []panel.UserInfo, tag string, _ *panel.NodeInfo) e
down = "user>>>" + user + ">>>traffic>>>downlink"
c.shm.UnregisterCounter(up)
c.shm.UnregisterCounter(down)
c.dispatcher.Wm.RemoveWritersForUser(user)
}
return nil
}