Skip to content

Add VLESS route extraction from UUID bytes 6-7#11

Open
kavore wants to merge 1 commit intoSagerNet:devfrom
kavore:vless-route
Open

Add VLESS route extraction from UUID bytes 6-7#11
kavore wants to merge 1 commit intoSagerNet:devfrom
kavore:vless-route

Conversation

@kavore
Copy link
Copy Markdown

@kavore kavore commented Apr 1, 2026

Extract a uint16 routing value from VLESS UUID bytes 6-7 (big-endian), inspired by Xray's vlessRoute feature.

Changes

  • UpdateUsers() zeros bytes 6-7 of stored UUIDs before map insertion
  • NewConnection() extracts route value from incoming UUID bytes 6-7, zeros them in a copy for user lookup, keeps original UUID for vision
  • Route value is passed to handler via context.Context

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