Skip to content

feat: IPv6-only support#1199

Closed
mitchellrj wants to merge 2 commits intohome-assistant-libs:masterfrom
mitchellrj:feat/ipv6-only-support
Closed

feat: IPv6-only support#1199
mitchellrj wants to merge 2 commits intohome-assistant-libs:masterfrom
mitchellrj:feat/ipv6-only-support

Conversation

@mitchellrj
Copy link
Copy Markdown

For devices which only have IPv6 addresses, this change allows creation of IPv6 sockets or IPv4 sockets, depending on what is available.

It does not allow for Happy Eyeballs implementation on dual-stack, which would require a much larger refactor.

[abcd:1234::6789] notation is retained for HTTP connections (required to distinguish the address from the port), but stripped out for the TCP socket connection, since some implementations of getaddrinfo do not support this notation as input, only the raw IPv6 address.

@elupus
Copy link
Copy Markdown
Collaborator

elupus commented Apr 25, 2026

Did you see: #1162 (ive not had time to look at it)

@mitchellrj
Copy link
Copy Markdown
Author

Well that PR is much neater than mine! I missed that in my search of issues.

@mitchellrj mitchellrj closed this Apr 28, 2026
@elupus
Copy link
Copy Markdown
Collaborator

elupus commented Apr 28, 2026

Could you test it and post a review?

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