Skip to content

Conversation

@kojix2
Copy link
Contributor

@kojix2 kojix2 commented Nov 7, 2025

Replace Socket.gethostbyname with Addrinfo.getaddrinfo in FreeBSD test
Addrinfo.getaddrinfo is available since Ruby 1.9

Rubocop warning:

test/fiddle/test_handle.rb:225:7: W: Lint/DeprecatedClassMethods: Socket.gethostbyname is deprecated in favor of Addrinfo.getaddrinfo.
      Socket.gethostbyname("localhost")
      ^^^^^^^^^^^^^^^^^^^^

@hsbt hsbt merged commit 8d0d125 into ruby:master Nov 7, 2025
68 checks passed
@kojix2 kojix2 deleted the getaddrinfo branch November 7, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants