From 04a241f1e9fe6d3cf8a971107c2d5c0af7f53ed4 Mon Sep 17 00:00:00 2001 From: Stuart Gathman <stuart@gathman.org> Date: Fri, 13 Jul 2012 21:50:52 +0000 Subject: [PATCH] Ignore leading/trailing whitespace parsing IP6 addresses. --- Milter/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Milter/utils.py b/Milter/utils.py index d8d5516..c8c3428 100644 --- a/Milter/utils.py +++ b/Milter/utils.py @@ -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 -- GitLab