Skip to content

Commit

Permalink
IpCache Skip local Fetch.
Browse files Browse the repository at this point in the history
  • Loading branch information
636f7374 committed Apr 11, 2020
1 parent 0e34883 commit 5fb6e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/durian/resolver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Durian::Resolver
ip_address = TCPSocket.try_connect_ip_address list, resolver.option.retry
raise Socket::Error.new "IP address cannot connect" unless ip_address

resolver.ip_cache.try &.set host, ip_address
resolver.ip_cache.try &.set host, ip_address unless method.local?
Tuple.new method, ip_address
end

Expand Down

0 comments on commit 5fb6e51

Please sign in to comment.