fixes
This commit is contained in:
4
main.py
4
main.py
@@ -2,6 +2,7 @@ import tempfile
|
||||
from functools import partial
|
||||
from typing import Annotated
|
||||
import typer
|
||||
import os
|
||||
|
||||
from pymobiledevice3.remote.common import TunnelProtocol
|
||||
from pymobiledevice3.remote.module_imports import verify_tunnel_imports
|
||||
@@ -10,7 +11,8 @@ from src.pymd3_vue_location_sim.server import TunneldRunnerSio, LocationSimulati
|
||||
from src.pymd3_vue_location_sim.json_formatter import logger
|
||||
|
||||
def main():
|
||||
cli_tunneld(host="0.0.0.0", port=49151)
|
||||
port = int(os.getenv("PORT", 49151))
|
||||
cli_tunneld(host="0.0.0.0", port=port)
|
||||
|
||||
def cli_tunneld(
|
||||
host: Annotated[str, typer.Option(help="Address to bind the tunneld server to.")] = TUNNELD_DEFAULT_ADDRESS[0],
|
||||
|
||||
Reference in New Issue
Block a user