Repository navigation
feat: add VLESS support for v2fly backends - #7
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add VLESS support for v2fly (
v2ray-corev5) backends. Xray is not supported.MU_VLESS_ADDRSandMU_VLESS_INBOUND_TAG(defaultvless).pkg/v2fly.ManagergainsWithProtocol(ProtocolVLESS); VLESS installsvless.Account{Id, Encryption: "none"}. Default stays VMess.<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.#vless(case-insensitive) are reserved and reject the whole snapshot for the V2Fly and VLESS backends.TRAFFIC_TYPE_V2FLY(no proto change); the sync metric label isvless. State uses a separatevless:<addr>:<tag>key.Notes
proxy), MU as sole user manager, an empty initial user list, and per-user stats enabled.#vlesswould cause snapshot rejection after upgrade.Testing
go vet ./...andgo test -race ./...pass. New tests use a real v2ray-core VLESS inbound andStatsService(install/revoke, counter isolation, reserved suffix).