Skip to content

Conversation

@tsibley
Copy link
Contributor

@tsibley tsibley commented Feb 12, 2025

Our is_loopback() implements three-valued logic (True, False, None) but all() implements boolean logic, so we need to handle the empty case ourself. Oops!

Noticed while testing an IPv6-only host against a Python with IPv6 disabled, which made it unresolvable. See "Gracefully handle IPv6 sockaddrs when Python's compiled without IPv6 support" (06e830b).

… address

Our is_loopback() implements three-valued logic (True, False, None) but
all() implements boolean logic, so we need to handle the empty case
ourself.  Oops!

Noticed while testing an IPv6-only host against a Python with IPv6
disabled, which made it unresolvable.  See "Gracefully handle IPv6
sockaddrs when Python's compiled without IPv6 support" (06e830b).
@tsibley tsibley merged commit 1321083 into master Feb 12, 2025
45 checks passed
@tsibley tsibley deleted the trs/unresolveable-host-is-not-loopback branch February 12, 2025 22:27
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