Browse Source

add TypeError

auth
clowwindy 11 years ago
parent
commit
f9fef0e229
  1. 2
      shadowsocks/asyncdns.py

2
shadowsocks/asyncdns.py

@ -233,7 +233,7 @@ def is_ip(address):
try: try:
socket.inet_pton(family, address) socket.inet_pton(family, address)
return True return True
except (TypeError, OSError, IOError): except (TypeError, ValueError, OSError, IOError):
pass pass
return False return False

Loading…
Cancel
Save