mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
Improve method gw.detect_ssh
This commit is contained in:
+2
-1
@@ -446,9 +446,10 @@ class Gateway():
|
||||
if verbose:
|
||||
print("Set SSH password = None")
|
||||
self.passw = None
|
||||
passw = None
|
||||
if verbose >= 2:
|
||||
print("Can't found valid SSH server on IP {}".format(ip_addr))
|
||||
return -1
|
||||
return -2
|
||||
|
||||
def set_timeout(self, timeout):
|
||||
self.timeout = timeout
|
||||
|
||||
Reference in New Issue
Block a user