correctly get error numbre from error object.
This commit is contained in:
parent
4fe50e9466
commit
64da0b0671
|
@ -865,7 +865,7 @@ class Socks5Listener(IdleObject):
|
|||
try:
|
||||
self._serv = socket.socket(*ai[:3])
|
||||
except socket.error, e:
|
||||
if e.errno == EAFNOSUPPORT:
|
||||
if e.args[0] == EAFNOSUPPORT:
|
||||
self.ai = None
|
||||
continue
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue