-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for IPv6 functionality #174
base: master
Are you sure you want to change the base?
Conversation
c5cfd18
to
3e2c2e6
Compare
Apologies for the spam, my git is rusty and I haven't built on another PR previously! Travis doesn't seem to support IPv6 (more info here and here ) so I did add a condition to skip in that case. Unfortunately this causes the IPv6 code to still not be covered through CI testing infrastructure - open to thoughts on how to address if this isn't workable. |
@mcipperly could you rebase tihis pull request? |
Signed-off-by: Matt Cipperly <[email protected]>
Signed-off-by: Matt Cipperly <[email protected]>
socket.SOCK_STREAM) | ||
else: | ||
sock = socket.socket(socket.AF_INET6, | ||
socket.SOCK_STREAM) | ||
sock.settimeout(self.timeout) |
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.
Does it need to call _is_ipv4_host()
in every _make_packet
?
It may be able to reuse checked status.
Signed-off-by: Matt Cipperly <[email protected]>
Signed-off-by: Matt Cipperly <[email protected]>
Updated to address the above re: not wanting to determine v4/v6 capability each time. Now:
Also added the |
I wrote a test for PR #138 which adds IPv6 support ( #137 )