mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3286] VPN still works after VLESS account expires (status: inactive) #2225
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vers2626 on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3286
Describe the bug
VLESS user account with an expired subscription (by time) is still able to use the VPN.
Even though:
...the client remains connected and actively using the service.
❗ Expected behavior:
When the expiration time of a VLESS account is reached, the user should be disconnected immediately and further VPN usage must be blocked regardless of toggle switch state.
How to repeat the problem?
Expected action
When a VLESS account expires (by time or traffic), the client should be disconnected immediately and prevented from further using the VPN service, even if the toggle remains on.
Received action
When a VLESS account expires, the user is still able to stay connected and use the VPN service. The account is marked as "Expired", status is inactive, and the red indicator appears, but the client remains online. The toggle being on seems to keep the connection alive, even though the account should be expired and disabled.
3x-ui Version
2.6.0
Xray-core Version
v25.5.16
Checklist
@MK0ltra commented on GitHub (Jul 29, 2025):
This is related to Xray-core behavior.
When x-ui delete expired users with xray api, sometimes clients seems to remain active until Xray-core restarted. Consider restarting the x-ui with cronjob every 24 hours or less.