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:
socket.inet_pton(family, address)
return True
except (TypeError, OSError, IOError):
except (TypeError, ValueError, OSError, IOError):
pass
return False

Loading…
Cancel
Save