diff --git a/lib/resolv.rb b/lib/resolv.rb index 9e8335389a..0c96ee80b9 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -750,7 +750,7 @@ class Resolv next if @socks_hash[bind_host] begin sock = UDPSocket.new(af) - rescue Errno::EAFNOSUPPORT + rescue Errno::EAFNOSUPPORT, Errno::EPROTONOSUPPORT next # The kernel doesn't support the address family. end @socks << sock