Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed May 31, 2024
1 parent 4b14886 commit 3d21ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route/router_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ func (r *Router) Lookup(ctx context.Context, domain string, strategy dns.DomainS
dnsCtx, cancel = context.WithTimeout(dnsCtx, C.DNSTimeout)
responseAddrs, err = r.lookupStaticIP(domain, strategy)

if err == nil && responseAddrs != nil {
r.dnsLogger.DebugContext(ctx, "Static IP responsefor ", domain, " ", responseAddrs)
if err == nil && responseAddrs != nil && len(responseAddrs) > 0 {
r.dnsLogger.DebugContext(ctx, "Static IP responsefor ", domain, " ", responseAddrs[0])
} else if rule != nil && rule.WithAddressLimit() {
addressLimit = true
responseAddrs, err = r.dnsClient.LookupWithResponseCheck(dnsCtx, transport, domain, strategy, func(responseAddrs []netip.Addr) bool {
Expand Down

0 comments on commit 3d21ef6

Please sign in to comment.