VLESS practice: Use user-sent VLESS UUID's 7th<<8 | 8th bytes as vlessRoute instead

https://github.com/XTLS/Xray-core/pull/5009#issuecomment-3195718690

Replaces 105b306d07
This commit is contained in:
RPRX
2025-08-18 08:50:43 +00:00
committed by GitHub
parent 5464862ee6
commit 7f300dbf0c
4 changed files with 12 additions and 6 deletions

View File

@@ -456,7 +456,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
}
inbound.Name = "vless"
inbound.User = request.User
inbound.VlessRoute = net.Port(userSentID[15])
inbound.VlessRoute = net.PortFromBytes(userSentID[6:8])
account := request.User.Account.(*vless.MemoryAccount)