Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect fallback local loopback address correctly #73

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Feb 17, 2021

In the previous PR, #71, local loopback address is
detected even though hosts file is empty, but
there is a case that hosts file is NOT empty
and localhost entry is missing. In such a case,
Coolio::DNSResolver.hosts("localhost") does not work
as expected. This PR should fix such case.

@kenhys
Copy link
Contributor Author

kenhys commented Feb 17, 2021

@repeatedly sorry for missing another test case, could you review, please?

In the previous PR, socketry#71, local loopback address is
detected even though hosts file is empty, but
there is a case that hosts file is NOT empty
and localhost entry is missing. In such a case,
Coolio::DNSResolver.hosts("localhost") does not work
as expected. This PR should fix such case.
@ioquatix ioquatix merged commit 9aa954d into socketry:master Aug 2, 2023
6 checks passed
@kenhys kenhys deleted the fix-missing-localhost branch August 3, 2023 09:25
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