Skip to content

feat: implement VLESS user sync in xray UserPool#422

Merged
Ehco1996 merged 1 commit intomasterfrom
feat/vless-user-sync
Mar 13, 2026
Merged

feat: implement VLESS user sync in xray UserPool#422
Ehco1996 merged 1 commit intomasterfrom
feat/vless-user-sync

Conversation

@Ehco1996
Copy link
Copy Markdown
Owner

Summary

  • Add ProtocolVless constant and VLESS case in ToXrayUser() so ehco can add users to VLESS inbounds (previously panicked on unknown protocol "vless")
  • Add Flow field to User struct for XTLS flow control (e.g. xtls-rprx-vision)
  • Include Flow in Equal() and UpdateFromServer() so flow changes trigger proper user re-sync

Test plan

  • Deploy with a VLESS inbound configured and verify users are synced without panic
  • Verify user traffic stats are collected correctly for VLESS users
  • Test flow field updates propagate correctly (change flow on panel side, confirm ehco re-adds user)

🤖 Generated with Claude Code

Add VLESS protocol support so ehco can synchronize users to VLESS
inbounds. Previously ToXrayUser() panicked on protocol "vless".

Changes:
- Add ProtocolVless constant
- Add Flow field to User struct (for XTLS flow control)
- Handle VLESS case in ToXrayUser() using vless.Account
- Include Flow in Equal() and UpdateFromServer() for proper sync

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Ehco1996 Ehco1996 merged commit eefc5d5 into master Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant