Skip to content

addrinfo - inspect hostname#6841

Merged
enebo merged 3 commits intojruby:masterfrom
ahorek:inspect_hostname
Sep 29, 2021
Merged

addrinfo - inspect hostname#6841
enebo merged 3 commits intojruby:masterfrom
ahorek:inspect_hostname

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Sep 16, 2021

as requested in #6829

before

[#<Addrinfo: 216.58.201.78:80 TCP>]

after

[#<Addrinfo: 216.58.201.78:80 TCP (google.com)>]

some parts are still missing or they may behave differently, for instance:

ruby -rsocket -e "p Addrinfo.getaddrinfo('localhost', 80, :INET, :STREAM, Socket::IPPROTO_TCP, Socket::AI_CANONNAME)"
[#<Addrinfo: 127.0.0.1:80 TCP DESKTOP-U60MURJ (localhost)>]

@ahorek ahorek changed the title WIP: inspect hostname addrinfo - inspect hostname Sep 16, 2021
@enebo enebo added this to the JRuby 9.3.1.0 milestone Sep 29, 2021
@enebo enebo merged commit 2d6fad3 into jruby:master Sep 29, 2021
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