Blame SOURCES/ruby-3.0.0-Convert-ip-addresses-to-canonical-form.patch

9f47f6
From 2becb920e431110c4afc4fa069b051c5940c2096 Mon Sep 17 00:00:00 2001
9f47f6
From: Jeremy Evans <code@jeremyevans.net>
9f47f6
Date: Fri, 29 May 2020 14:13:30 -0700
9f47f6
Subject: [PATCH] Convert ip addresses to canonical form in
9f47f6
 Resolv::DNS::Requester::UnconnectedUDP#sender
9f47f6
9f47f6
Otherwise, if the IP address given is not in canonical form, it
9f47f6
won't match, and Resolv will ignore it.
9f47f6
9f47f6
Fixes [Bug #16439]
9f47f6
---
9f47f6
 lib/resolv.rb | 1 +
9f47f6
 1 file changed, 1 insertion(+)
9f47f6
9f47f6
diff --git a/lib/resolv.rb b/lib/resolv.rb
9f47f6
index e7b45e785a85..d78531e174fd 100644
9f47f6
--- a/lib/resolv.rb
9f47f6
+++ b/lib/resolv.rb
9f47f6
@@ -762,6 +762,7 @@ def recv_reply(readable_socks)
9f47f6
         end
9f47f6
 
9f47f6
         def sender(msg, data, host, port=Port)
9f47f6
+          host = Addrinfo.ip(host).ip_address
9f47f6
           lazy_initialize
9f47f6
           sock = @socks_hash[host.index(':') ? "::" : "0.0.0.0"]
9f47f6
           return nil if !sock