[GH-ISSUE #2778] Client status storage #1840

Closed
opened 2026-10-31 20:21:27 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @sharif221 on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2778

I faced something strange

the panel remember that clients that are disabled by Admin.
but in database all of that clients marked as enabled or "enable": true

How the client state stored?

It's all functioning right, but isn't it better to also modify the database?

I can fix that in pull request, but I need to ask first

Originally created by @sharif221 on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2778 I faced something strange the panel remember that clients that are disabled by Admin. but in database all of that clients marked as enabled or `"enable": true` How the client state stored? It's all functioning right, but isn't it better to also modify the database? I can fix that in pull request, but I need to ask first
bsakaguchi 2026-10-31 20:21:27 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sharif221 commented on GitHub (Mar 21, 2025):

It's fully functional but when some wrapper tries to read state on database it get it wrong.
Also on database transfer to another panel all user disabled clients will re enable, this is in fact a bug.

<!-- gh-comment-id:2743331507 --> @sharif221 commented on GitHub (Mar 21, 2025): It's fully functional but when some wrapper tries to read state on database it get it wrong. ~~Also on database transfer to another panel all user disabled clients will re enable, this is in fact a bug.~~
Author
Owner

@sharif221 commented on GitHub (Mar 21, 2025):

Ok, I'm wrong the client state stored in: inbound --> settings

This is a JSON stored as text.

For the client state, we need to look to the: "settings" --> "clients" --> "enable"

<!-- gh-comment-id:2743443673 --> @sharif221 commented on GitHub (Mar 21, 2025): Ok, I'm wrong the client state stored in: `inbound` --> `settings` This is a JSON stored as text. For the client state, we need to look to the: `"settings"` --> `"clients"` --> `"enable"`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#1840
No description provided.