mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
Fixed & Tested that now we can open multiple redirections over same
tunnel.
This commit is contained in:
parent
08eeff5604
commit
5da12a8091
@ -101,7 +101,7 @@ class ForwardThread(threading.Thread):
|
|||||||
if localPort is None:
|
if localPort is None:
|
||||||
localPort = random.randrange(40000, 50000)
|
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
|
ft.client = self.client
|
||||||
self.client.useCount += 1 # One more using this client
|
self.client.useCount += 1 # One more using this client
|
||||||
ft.start()
|
ft.start()
|
||||||
@ -135,8 +135,6 @@ class ForwardThread(threading.Thread):
|
|||||||
self.status = 2 # Error
|
self.status = 2 # Error
|
||||||
return
|
return
|
||||||
|
|
||||||
self.clientUseCount += 1
|
|
||||||
|
|
||||||
class SubHandler(Handler):
|
class SubHandler(Handler):
|
||||||
chain_host = self.redirectHost
|
chain_host = self.redirectHost
|
||||||
chain_port = self.redirectPort
|
chain_port = self.redirectPort
|
||||||
|
@ -39,7 +39,7 @@ logging.basicConfig(
|
|||||||
filename=os.path.join(tempfile.gettempdir(), b'udsclient.log'),
|
filename=os.path.join(tempfile.gettempdir(), b'udsclient.log'),
|
||||||
filemode='a',
|
filemode='a',
|
||||||
format='%(levelname)s %(asctime)s %(message)s',
|
format='%(levelname)s %(asctime)s %(message)s',
|
||||||
level=logging.INFO
|
level=logging.DEBUG
|
||||||
)
|
)
|
||||||
|
|
||||||
logger = logging.getLogger('udsclient')
|
logger = logging.getLogger('udsclient')
|
||||||
|
Loading…
Reference in New Issue
Block a user