diff --git a/lib/httpx/io/tcp.rb b/lib/httpx/io/tcp.rb index a459157c..1ea2c2d5 100644 --- a/lib/httpx/io/tcp.rb +++ b/lib/httpx/io/tcp.rb @@ -200,7 +200,7 @@ module HTTPX resolver_addresses = Resolver.nolookup_resolve(@hostname) - (resolver_addresses & @addresses).empty? + (Array(resolver_addresses) & @addresses).empty? end # :nocov: