mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
connect: Add possibility set web password in command line
Example: run.bat connect6.py 12345678
This commit is contained in:
@@ -1010,6 +1010,8 @@ def create_gateway(timeout = 4, die_if_sshOk = True, die_if_ftpOk = True, web_lo
|
||||
ccode = gw.device_info["countrycode"]
|
||||
print(f'CountryCode = {ccode}')
|
||||
if web_login:
|
||||
if isinstance(web_login, str):
|
||||
gw.webpassword = web_login
|
||||
gw.web_login()
|
||||
return gw
|
||||
|
||||
|
||||
Reference in New Issue
Block a user