From 55b38c2741b89241488ece94b0d9e0fa434ed7f5 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 1 Jun 2024 01:55:14 +0800 Subject: [PATCH] Update ssh_local.py --- class/core/ssh_local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/ssh_local.py b/class/core/ssh_local.py index 1b36be5dc..275ff1254 100644 --- a/class/core/ssh_local.py +++ b/class/core/ssh_local.py @@ -66,13 +66,13 @@ class ssh_local(object): mw.createSshInfo() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - port = getSSHPort() + port = mw.getSSHPort() try: ssh.connect('127.0.0.1', port, timeout=5) except Exception as e: ssh.connect('localhost', port, timeout=5) except Exception as e: - ssh.connect(getHostAddr(), port, timeout=30) + ssh.connect(mw.getHostAddr(), port, timeout=30) except Exception as e: return False