lib/httpx/resolver.rb in httpx-0.3.1 vs lib/httpx/resolver.rb in httpx-0.4.0

- old
+ new

@@ -50,10 +50,11 @@ end # do not use directly! def lookup(hostname, ttl) return unless @lookups.key?(hostname) + @lookups[hostname] = @lookups[hostname].select do |address| address["TTL"] > ttl end ips = @lookups[hostname].flat_map do |address| if address.key?("alias") @@ -90,10 +91,10 @@ } when Resolv::DNS::Resource::IN::A, Resolv::DNS::Resource::IN::AAAA addresses << { "name" => question.to_s, - "TTL" => value.ttl, + "TTL" => value.ttl, "data" => value.address.to_s, } end end addresses