This commit is contained in:
2026-04-18 08:09:38 -04:00
parent e667af9201
commit da8716cccc
5 changed files with 116 additions and 105 deletions

View File

@@ -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],