diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index f0ea239..f188faa 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -233,7 +233,7 @@ def is_ip(address): try: socket.inet_pton(family, address) return True - except (TypeError, OSError, IOError): + except (TypeError, ValueError, OSError, IOError): pass return False