fix: remove unused subprocess import, guard logs dir in start_tunnel

This commit is contained in:
2026-05-21 12:24:20 +08:00
parent 5218431349
commit 522fa1b57e
2 changed files with 1 additions and 1 deletions

View File

@@ -130,6 +130,7 @@ def start_tunnel(config_dir: Path, tunnel: TunnelConfig) -> int:
raise click.ClickException(f"Port {tunnel.local_port} is already in use")
log_path = config_dir / "logs" / f"{tunnel.name}.log"
log_path.parent.mkdir(parents=True, exist_ok=True)
env = os.environ.copy()
env["AUTOSSH_GATETIME"] = "0"