Routing: fix router select wrong outbound when failed to resolve domain to ip

This commit is contained in:
patterniha
2025-09-12 22:48:17 +03:30
parent 83c5370eec
commit fc7a3c14d7
6 changed files with 36 additions and 7 deletions
+5
View File
@@ -152,6 +152,11 @@ func (ctx *Context) GetSkipDNSResolve() bool {
return ctx.Content.SkipDNSResolve
}
// GetError implements routing.Context.
func (ctx *Context) GetError() error {
return nil
}
// AsRoutingContext creates a context from context.context with session info.
func AsRoutingContext(ctx context.Context) routing.Context {
outbounds := session.OutboundsFromContext(ctx)