Flood-UI / flood

A web UI for rTorrent, qBittorrent and Transmission with a Node.js backend and React frontend. Migrate to v4: https://github.com/jesec/flood/wiki/Migrate-from-older-versions-of-Flood.
https://flood.js.org
GNU General Public License v3.0
1.81k stars 173 forks source link

checking on Enable DHT setting does not update checked state #870

Open perrin4869 opened 4 years ago

perrin4869 commented 4 years ago

Type: Bug Report

Your Environment

Summary

Trying to enable DHT settings in the settings modal is not working. Checking the request in the developer tools showed that the request body did not change according to the checkbox in the UI. Sending the correct request through CURL did update the state correctly. Moreover, checking the React developer tools, I could confirm the checked state was not changing according to the checkbox.

Expected Behavior

DHT should enable/disable with GUI

Current Behavior

No update

Possible Solution

This is a frontend problem. I could try to send a PR, but would probably be immediately fixed by the developer.

Steps to Reproduce

  1. Install rtorrent-flood from FreeNAS GUI.
  2. Login flood
  3. update DHT checkbox in settings
  4. save settings
  5. refresh flood webpage
  6. confirm DHT state has not changed.
artik commented 4 years ago

I have the box checked, and my rtorrent.rc file has this option enabled: dht.mode.set = auto. I don't know if the checkbox inside Flood override this setting, but at least you can easily change it via rtorrent configuration file.