Add support to per-torrent DHT, PEx, LSD options in WebUI #16921

Closed
opened 2026-02-22 03:32:18 -05:00 by deekerman · 1 comment
Owner

Originally created by @virgilinojuca on GitHub (May 31, 2025).

Suggestion

Since #13885, one can have DHT, PEx and LSD enabled globally, but disabled for individual torrents. However, this feature is not supported in webUI yet. The “Torrent Options” dialog is not available in webUI, so there is no way to disable any of the aforementioned features from there. And, even if you do it form elsewhere (the main Qt interface, or even reloading the program with manually edited .fastresume files), the webUI will still show DHT, PEx and/or LSD as “Working” (even though it actually isn't), instead of “Disabled for this torrent” that is shown in the main Qt interface. My suggestion is that the “Torrent Options” dialog is added to the webUI as well.

Use case

I think this would be useful especially for headless installations. I, for example, run my main qBittorrent instance in a Docker container in my NAS, so I usually control it via webUI only.

In that installation, to disable DHT/PEx/LSD per-torrent, I currently have to stop my docker container, manually edit the fastresume files (changing disable_dht, disable_lsd, and/or disable_pex to 1), and then restart the container. It does work under the hood, but is not reflected in the webUI.

Extra info/examples/attachments

Even though my main installation is an unofficial Docker image, I also tested it on Windows 11 (Pro x64 24H2) with an official qBittorrent 5.1.0 (Qt: 6.9.0, libtorrent 1.2.20.0), and the behaviour is the same.

Image
Image

Originally created by @virgilinojuca on GitHub (May 31, 2025). ### Suggestion Since #13885, one can have DHT, PEx and LSD enabled globally, but disabled for individual torrents. However, this feature is not supported in webUI yet. The “Torrent Options” dialog is not available in webUI, so there is no way to disable any of the aforementioned features from there. And, even if you do it form elsewhere (the main Qt interface, or even reloading the program with manually edited `.fastresume` files), the webUI will still show DHT, PEx and/or LSD as “Working” (even though it actually isn't), instead of “Disabled for this torrent” that is shown in the main Qt interface. My suggestion is that the “Torrent Options” dialog is added to the webUI as well. ### Use case I think this would be useful especially for headless installations. I, for example, run my main qBittorrent instance in a Docker container in my NAS, so I usually control it via webUI only. In that installation, to disable DHT/PEx/LSD per-torrent, I currently have to stop my docker container, manually edit the fastresume files (changing `disable_dht`, `disable_lsd`, and/or `disable_pex` to `1`), and then restart the container. It does work under the hood, but is not reflected in the webUI. ### Extra info/examples/attachments Even though my main installation is an unofficial Docker image, I also tested it on Windows 11 (Pro x64 24H2) with an official qBittorrent 5.1.0 (Qt: 6.9.0, libtorrent 1.2.20.0), and the behaviour is the same. ![Image](https://github.com/user-attachments/assets/aafbfbcf-7d31-4777-881e-cf83b411b49b) ![Image](https://github.com/user-attachments/assets/1642bf1f-22af-4281-9c00-da9b33fce285)
Author
Owner

@HanabishiRecca commented on GitHub (Jun 1, 2025):

even if you do it form elsewhere (the main Qt interface, or even reloading the program with manually edited .fastresume files), the webUI will still show DHT, PEx and/or LSD as “Working” (even though it actually isn't)

I think that should be accounted first. WebUI showing blatant wrong info could be even considered a bug.

@HanabishiRecca commented on GitHub (Jun 1, 2025): > even if you do it form elsewhere (the main Qt interface, or even reloading the program with manually edited `.fastresume` files), the webUI will still show DHT, PEx and/or LSD as “Working” (even though it actually isn't) I think that should be accounted first. WebUI showing blatant wrong info could be even considered a bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#16921
No description provided.