mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-22 13:58:50 +01:00
Remove dodgy code.
This commit is contained in:
parent
192e5b36e8
commit
0f2c249e4d
@ -134,13 +134,6 @@ class SockWrapper:
|
|||||||
return # already connected
|
return # already connected
|
||||||
self.rsock.setblocking(False)
|
self.rsock.setblocking(False)
|
||||||
debug3('%r: trying connect to %r\n' % (self, self.connect_to))
|
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:
|
try:
|
||||||
self.rsock.connect(self.connect_to)
|
self.rsock.connect(self.connect_to)
|
||||||
# connected successfully (Linux)
|
# connected successfully (Linux)
|
||||||
|
Loading…
Reference in New Issue
Block a user