Update On Sun Aug 17 20:39:11 CEST 2025

This commit is contained in:
github-action[bot]
2025-08-17 20:39:12 +02:00
parent ef94c2e71c
commit 4b335cfee5
219 changed files with 7017 additions and 5933 deletions

View File

@@ -41,6 +41,9 @@ type Context interface {
// GetUser returns the user email from the connection content, if exists.
GetUser() string
// GetVlessRoute returns the user-sent VLESS UUID's last byte, if exists.
GetVlessRoute() net.Port
// GetAttributes returns extra attributes from the conneciont content.
GetAttributes() map[string]string

View File

@@ -128,6 +128,14 @@ func (ctx *Context) GetUser() string {
return ctx.Inbound.User.Email
}
// GetVlessRoute implements routing.Context.
func (ctx *Context) GetVlessRoute() net.Port {
if ctx.Inbound == nil {
return 0
}
return ctx.Inbound.VlessRoute
}
// GetAttributes implements routing.Context.
func (ctx *Context) GetAttributes() map[string]string {
if ctx.Content == nil {