diff --git a/scripts/tui.py b/scripts/tui.py index 56427ab..c35538e 100644 --- a/scripts/tui.py +++ b/scripts/tui.py @@ -43,6 +43,8 @@ def upload() -> None: print(f"[错误] 文件不存在: {path}") return server = _clean(input("服务器 [http://127.0.0.1:8000]: ")) or "http://127.0.0.1:8000" + if not server.startswith(("http://", "https://")): + server = "http://" + server # 只输 IP:端口 自动补协议 chunk_size = _clean(input("卷大小 MB [10]: ")) or "10" print("\n[1/2] 加密 + 分卷 + 元数据 ...")