Update On Sat Nov 9 19:31:36 CET 2024

This commit is contained in:
github-action[bot]
2024-11-09 19:31:36 +01:00
parent af05de6722
commit 5a387216ee
676 changed files with 133147 additions and 151106 deletions

View File

@@ -125,7 +125,7 @@ func (ctx *Context) GetSkipDNSResolve() bool {
// AsRoutingContext creates a context from context.context with session info.
func AsRoutingContext(ctx context.Context) routing.Context {
outbounds := session.OutboundsFromContext(ctx)
ob := outbounds[len(outbounds) - 1]
ob := outbounds[len(outbounds)-1]
return &Context{
Inbound: session.InboundFromContext(ctx),
Outbound: ob,