Add custom auth to Digest of AntMiner model check
This commit is contained in:
@@ -833,7 +833,9 @@ class MinerFactory:
|
|||||||
|
|
||||||
async def _get_model_antminer_web(self, ip: str) -> str | None:
|
async def _get_model_antminer_web(self, ip: str) -> str | None:
|
||||||
# last resort, this is slow
|
# last resort, this is slow
|
||||||
auth = httpx.DigestAuth("root", "root")
|
auth = httpx.DigestAuth(
|
||||||
|
"root", settings.get("default_antminer_password", "root")
|
||||||
|
)
|
||||||
web_json_data = await self.send_web_command(
|
web_json_data = await self.send_web_command(
|
||||||
ip, "/cgi-bin/get_system_info.cgi", auth=auth
|
ip, "/cgi-bin/get_system_info.cgi", auth=auth
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user