Skip to content

[LIBCLOUD-601] Add check windows os in is_valid_ip_address to run inet_aton#343

Closed
ashangit wants to merge 3 commits into
apache:trunkfrom
ashangit:LIBCLOUD-601_inet_aton
Closed

[LIBCLOUD-601] Add check windows os in is_valid_ip_address to run inet_aton#343
ashangit wants to merge 3 commits into
apache:trunkfrom
ashangit:LIBCLOUD-601_inet_aton

Conversation

@ashangit
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess there is still an edge case with IPv6 which inet_aton doesn't support, but inet_pton does.

Maybe we should throw if running on Windows and user specifies family=socket.AF_INET6.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In fact there is an issue with IPv6 when using inet_aton.
So we could throw an exception or use an external library dnspython wihich provide inet_aton for ipv4 and ipv6 and for windows also.
Let me know if adding such library is something acceptable or I will just add the throw.

@Kami
Copy link
Copy Markdown
Member

Kami commented Jun 20, 2015

Sorry for the delay. I've added a check for validating IPv6 address on Windows (e105433) and merged changes into trunk.

Thanks.

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