From 068aa121a44a2076256e1d0d2d80b9dd2d988c3b Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Thu, 8 May 2025 20:35:12 +0800 Subject: [PATCH] fix: disable stun proxy feature --- README.md | 1 - ui/lib/settings/downloader.dart | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9b8b83f..e4a1817 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ docker run -p 8080:8080 ghcr.io/simon-ding/polaris:latest - [x] 电视剧自动追踪下载 - [x] 电影自动追踪下载 -- [x] [内建NAT内网穿透功能](./doc/stun_nat_traversal.md),无需额外配置,可实现BT/PT全速上传 - [x] 本地、webdav、 [alist](https://github.com/alist-org/alist) 存储支持,使用 alist 存储支持秒传功能 - [x] 事件通知推送,目前支持 Pushover和 Bark,还在扩充中 - [x] TMDB 代理支持 diff --git a/ui/lib/settings/downloader.dart b/ui/lib/settings/downloader.dart index 061c3bb..c425aa6 100644 --- a/ui/lib/settings/downloader.dart +++ b/ui/lib/settings/downloader.dart @@ -87,12 +87,12 @@ class _DownloaderState extends ConsumerState { labelText: "优先级", helperText: "1-50, 1最高优先级,50最低优先级"), validator: FormBuilderValidators.integer(), autovalidateMode: AutovalidateMode.onUserInteraction), - FormBuilderSwitch( - name: "use_nat_traversal", - enabled: client.implementation == "qbittorrent", - title: const Text("使用内置STUN NAT穿透"), - decoration: InputDecoration(helperText: "内建的NAT穿透功能帮助BT客户端上传(会自动更改下载器的监听地址)"), - ), + // FormBuilderSwitch( + // name: "use_nat_traversal", + // enabled: client.implementation == "qbittorrent", + // title: const Text("使用内置STUN NAT穿透"), + // decoration: InputDecoration(helperText: "内建的NAT穿透功能帮助BT客户端上传(会自动更改下载器的监听地址)"), + // ), FormBuilderSwitch( name: "remove_completed_downloads", title: const Text("任务完成后删除")),