host
This commit is contained in:
6
main.py
6
main.py
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user