Skip to content
Snippets Groups Projects
Commit 04a241f1 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Ignore leading/trailing whitespace parsing IP6 addresses.

parent 16bfe5d4
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ if hasattr(socket,'has_ipv6') and socket.has_ipv6:
def inet_ntop(s):
return socket.inet_ntop(socket.AF_INET6,s)
def inet_pton(s):
return socket.inet_pton(socket.AF_INET6,s)
return socket.inet_pton(socket.AF_INET6,s.strip())
else:
from pyip6 import inet_ntop, inet_pton
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment