Remove dodgy code.

This commit is contained in:
Brian May 2014-09-15 13:43:45 +10:00
parent 192e5b36e8
commit 0f2c249e4d

View File

@ -134,13 +134,6 @@ class SockWrapper:
return # already connected
self.rsock.setblocking(False)
debug3('%r: trying connect to %r\n' % (self, self.connect_to))
family = self.rsock.family
if family==socket.AF_INET and socket.inet_pton(family, self.connect_to[0])[0] == '\0':
self.seterr(Exception("Can't connect to %r: "
"IP address starts with zero\n"
% (self.connect_to,)))
self.connect_to = None
return
try:
self.rsock.connect(self.connect_to)
# connected successfully (Linux)