From c6780679f448d287ced3e7ae8a9529c2183cd357 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Sun, 18 Nov 2012 20:05:53 -0800 Subject: [PATCH] Synchronise tabulation --- trustify/client/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trustify/client/client.py b/trustify/client/client.py index 782aac1f8..21641c385 100644 --- a/trustify/client/client.py +++ b/trustify/client/client.py @@ -132,18 +132,18 @@ def is_hostname_sane(hostname): import string as s allowed = s.ascii_letters + s.digits + "-." # hostnames & IPv4 if all([c in allowed for c in hostname]): - return True + return True if not allow_raw_ipv6_server: return False # ipv6 is messy and complicated, can contain %zoneindex etc. import socket try: - # is this a valid IPv6 address? - socket.getaddrinfo(hostname,443,socket.AF_INET6) - return True + # is this a valid IPv6 address? + socket.getaddrinfo(hostname,443,socket.AF_INET6) + return True except: - return False + return False