Skip to content

feat: add VLESS support for v2fly backends - #7

Merged
orvice merged 1 commit into
icebase:mainfrom
orxbot:feat/vless-support
Oct 24, 2026
Merged

orvice merged 1 commit into
icebase:mainfrom
orxbot:feat/vless-support

Conversation

@orxbot

@orxbot orxbot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Add VLESS support for v2fly (v2ray-core v5) backends. Xray is not supported.

  • New MU_VLESS_ADDRS and MU_VLESS_INBOUND_TAG (default vless).
  • pkg/v2fly.Manager gains WithProtocol(ProtocolVLESS); VLESS installs vless.Account{Id, Encryption: "none"}. Default stays VMess.
  • VLESS users get the backend email <email>#vless. V2Ray stats are keyed by email only, so this keeps VMess/VLESS counters on one instance disjoint and avoids double billing. Each syncer ignores the other's counters.
  • Emails ending in #vless (case-insensitive) are reserved and reject the whole snapshot for the V2Fly and VLESS backends.
  • Traffic is uploaded as TRAFFIC_TYPE_V2FLY (no proto change); the sync metric label is vless. State uses a separate vless:<addr>:<tag> key.
  • README updated.

Notes

  • The VLESS inbound needs its own tag (not proxy), MU as sole user manager, an empty initial user list, and per-user stats enabled.
  • Existing VMess users whose email ends with #vless would cause snapshot rejection after upgrade.

Testing

go vet ./... and go test -race ./... pass. New tests use a real v2ray-core VLESS inbound and StatsService (install/revoke, counter isolation, reserved suffix).

Add MU_VLESS_ADDRS / MU_VLESS_INBOUND_TAG. VLESS users are installed with the
backend email <email>#vless so VMess and VLESS counters on one V2Ray instance
stay disjoint. Traffic is uploaded as TRAFFIC_TYPE_V2FLY.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
@orvice
orvice merged commit 3f40355 into icebase:main Oct 24, 2026
3 checks 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.

2 participants