mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-18 06:03:54 +03:00
fixed typo on forward
This commit is contained in:
parent
2fea5d1526
commit
1983a218cb
@ -140,14 +140,14 @@ class ForwardThread(threading.Thread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.client is None:
|
if self.client is None:
|
||||||
|
try:
|
||||||
self.client = paramiko.SSHClient()
|
self.client = paramiko.SSHClient()
|
||||||
self.client.useCount = 1 # Custom added variable, to keep track on when to close tunnel
|
self.client.useCount = 1 # Custom added variable, to keep track on when to close tunnel
|
||||||
self.client.load_system_host_keys()
|
# self.client.load_system_host_keys()
|
||||||
self.client.set_missing_host_key_policy(CheckfingerPrints(self.fingerPrints))
|
self.client.set_missing_host_key_policy(CheckfingerPrints(self.fingerPrints))
|
||||||
|
|
||||||
logger.debug('Connecting to ssh host %s:%d ...', self.server, self.port)
|
logger.debug('Connecting to ssh host %s:%d ...', self.server, self.port)
|
||||||
|
|
||||||
try:
|
|
||||||
self.client.connect(self.server, self.port, username=self.username, password=self.password, timeout=5)
|
self.client.connect(self.server, self.port, username=self.username, password=self.password, timeout=5)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Exception connecting: ')
|
logger.exception('Exception connecting: ')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user