Add custom auth to Digest of AntMiner model check

This commit is contained in:
Børge Holm-Wennberg
2024-07-29 09:47:19 +02:00
parent 1d2dc3fddf
commit 568ffd67c4

View File

@@ -833,7 +833,9 @@ class MinerFactory:
async def _get_model_antminer_web(self, ip: str) -> str | None:
# 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(
ip, "/cgi-bin/get_system_info.cgi", auth=auth
)