-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9161d3a
commit 9b0773c
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9b0773c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious -- why IPv6 fist? I read the issue referenced but I can't actually figure out why it should go first -- in the case where there's a single stack (just IPv4) this code will return the IPv6 hostname... which can be problematic for lots of setups...
9b0773c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the whole point is to prefer IPv6 if available
ah you're right. I had tested on a system with IPv6 enabled; and on a system with IPv6 disabled, and all looked fine, but on the IPv6 disabled system I was inadvertently filtering out all AAAA records from DNS responses, which led me to miss this
should be fixed in c4fb58c
Thanks.