This commit is contained in:
2025-11-06 22:46:23 +03:00
parent a184e855f0
commit ecdbc7e028
2 changed files with 4 additions and 3 deletions

View File

@ -27,9 +27,9 @@ def move_ipa(from_path: str, to_path: str):
class IPAToolClient(BaseAsyncClient):
def __init__(self, port: int):
def __init__(self, host: str, port: int):
super().__init__(
f"http://65.109.64.76:{port}",
f"http://{host}:{port}",
config=AsyncClientConfig(timeout=ClientTimeout(300)),
)
@ -198,7 +198,7 @@ async def main(json_data: dict):
tasks = []
for udid, value in json_data.items():
info = UdidInfo(**value)
client = IPAToolClient(info.port)
client = IPAToolClient(info.host, info.port)
task = _main(client, udid, info)
tasks.append(task)
await asyncio.gather(*tasks, return_exceptions=True)

View File

@ -3,6 +3,7 @@ from dataclasses import dataclass
@dataclass(frozen=True)
class UdidInfo:
host: str
port: int
user: str
pswd: str