From b18e853feab302264b05bfb2421eef449d8d94fb Mon Sep 17 00:00:00 2001 From: lou Date: Mon, 10 Aug 2026 00:35:59 +0800 Subject: [PATCH] =?UTF-8?q?tui.py:=20=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=87=AA=E5=8A=A8=E8=A1=A5=20http://=20=E5=89=8D?= =?UTF-8?q?=E7=BC=80=20(=E5=8F=AA=E8=BE=93=20IP:=E7=AB=AF=E5=8F=A3=20?= =?UTF-8?q?=E5=8D=B3=E5=8F=AF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/tui.py | 2 ++ 1 file changed, 2 insertions(+) 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] 加密 + 分卷 + 元数据 ...")