Skip to content

inet_ntoa is not handling ipv6#196

Closed
djeclemen wants to merge 1 commit into
python-zeroconf:masterfrom
djeclemen:master
Closed

inet_ntoa is not handling ipv6#196
djeclemen wants to merge 1 commit into
python-zeroconf:masterfrom
djeclemen:master

Conversation

@djeclemen
Copy link
Copy Markdown

When calling info.addresses and the device contains an ipv6 address, than you get a exception.

Using info.addresses_by_version(IPVersion.V4Only) we make sure that no ipv6 address is returned

@dtantsur
Copy link
Copy Markdown
Collaborator

dtantsur commented Nov 5, 2019

With #195 we'll be able to use parsed_addresses instead.

Copy link
Copy Markdown
Collaborator

@dtantsur dtantsur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please check this to use parsed_addresses?

@jstasiak
Copy link
Copy Markdown
Collaborator

jstasiak commented Feb 2, 2020

This is fixed with parsed_addresses I believe, please reopen if not.

@jstasiak jstasiak closed this Feb 2, 2020
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.

3 participants