From 5da12a8091c38ee6461d9991b9e5605c513b003b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 28 Apr 2016 12:49:23 +0200 Subject: [PATCH] Fixed & Tested that now we can open multiple redirections over same tunnel. --- client/src/uds/forward.py | 4 +--- client/src/uds/log.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/uds/forward.py b/client/src/uds/forward.py index 87b6bbfc0..b4fc8cbe2 100644 --- a/client/src/uds/forward.py +++ b/client/src/uds/forward.py @@ -101,7 +101,7 @@ class ForwardThread(threading.Thread): if localPort is None: localPort = random.randrange(40000, 50000) - ft = ForwardThread(self.server, self.port, self.username, self.password, localPort, redirectHost, redirectPort. self.waitTime) + ft = ForwardThread(self.server, self.port, self.username, self.password, localPort, redirectHost, redirectPort, self.waitTime) ft.client = self.client self.client.useCount += 1 # One more using this client ft.start() @@ -135,8 +135,6 @@ class ForwardThread(threading.Thread): self.status = 2 # Error return - self.clientUseCount += 1 - class SubHandler(Handler): chain_host = self.redirectHost chain_port = self.redirectPort diff --git a/client/src/uds/log.py b/client/src/uds/log.py index 1c9eacc44..461f78977 100644 --- a/client/src/uds/log.py +++ b/client/src/uds/log.py @@ -39,7 +39,7 @@ logging.basicConfig( filename=os.path.join(tempfile.gettempdir(), b'udsclient.log'), filemode='a', format='%(levelname)s %(asctime)s %(message)s', - level=logging.INFO + level=logging.DEBUG ) logger = logging.getLogger('udsclient')