[前][次][番号順一覧][スレッド一覧]

ruby-changes:74306

From: Samuel <ko1@a...>
Date: Tue, 1 Nov 2022 13:10:55 +0900 (JST)
Subject: [ruby-changes:74306] 16953867ed (master): We don't care about actual hostname resolution. (#6652)

https://git.ruby-lang.org/ruby.git/commit/?id=16953867ed

From 16953867ed8fc951364f05fdf0c9267799e3087a Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
Date: Tue, 1 Nov 2022 17:10:31 +1300
Subject: We don't care about actual hostname resolution. (#6652)

https://bugs.ruby-lang.org/issues/18380
---
 test/fiber/test_address_resolve.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/fiber/test_address_resolve.rb b/test/fiber/test_address_resolve.rb
index 457221b9b1..12223bcc06 100644
--- a/test/fiber/test_address_resolve.rb
+++ b/test/fiber/test_address_resolve.rb
@@ -269,7 +269,7 @@ class TestAddressResolve < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/fiber/test_address_resolve.rb#L269
       Fiber.set_scheduler scheduler
 
       Fiber.schedule do
-        result = Socket.getnameinfo(["AF_INET", 80, "example.com"], Socket::NI_NUMERICSERV)
+        result = Socket.getnameinfo(["AF_INET", 80, "example.com"], Socket::NI_NUMERICSERV | Socket::NI_NUMERICHOST)
 
         assert_equal(["1.2.3.4", "80"], result)
       end
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]