diff --git a/src/common/socks5.py b/src/common/socks5.py index 4e02125ca..c7aa99bf9 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -899,6 +899,9 @@ class Socks5Receiver(Socks5, IdleObject): def connect(self): ''' create the socket and plug it to the idlequeue ''' + if self.ais == None: + return None + for ai in self.ais: try: self._sock=socket.socket(*ai[:3])