Improve resolve action

This commit is contained in:
世界
2025-02-20 15:13:14 +08:00
parent f18889369f
commit c1189e2a7b
7 changed files with 103 additions and 26 deletions

View File

@@ -664,8 +664,11 @@ func (r *Router) actionResolve(ctx context.Context, metadata *adapter.InboundCon
}
}
addresses, err := r.dns.Lookup(adapter.WithContext(ctx, metadata), metadata.Destination.Fqdn, adapter.DNSQueryOptions{
Transport: transport,
Strategy: action.Strategy,
Transport: transport,
Strategy: action.Strategy,
DisableCache: action.DisableCache,
RewriteTTL: action.RewriteTTL,
ClientSubnet: action.ClientSubnet,
})
if err != nil {
return err