ipfilter icon indicating copy to clipboard operation
ipfilter copied to clipboard

Reload ipfilter.dat won't work when the client is running?

Open Sopor opened this issue 5 years ago • 1 comments

I run my qBittorrent 24/7 and it seems that IPFilter won't trigger a reload of the ipfilter.

qBittorrent has a built in WebUI and from here it is possible to control qBittorrent. It seems that you can't really update the filter from the WebUI with curl -s --cookie "$cookie" "$ENDPOINT/app/setPreferences" -d 'json={"ip_filter_path": "$filter_path"}' as long as the filename is the same, but it is possible to toggle it off and on with ip_filter_enabled and that will make the filter to load.

2020-12-03 18:02 - Web UI: Now listening on IP: 192.168.0.*, port: 8022
2020-12-03 18:02 - Successfully parsed the provided IP filter: 221730 rules were applied.
2020-12-03 18:02 - Options were saved successfully.
2020-12-03 18:02 - Web UI: Now listening on IP: 192.168.0.*, port: 8022
2020-12-03 18:02 - Options were saved successfully.

Maybe this is something you could add to IPFilter? I haven't tested all the torrent clients but what i know they all have a WebUI and that would make it possible to do the same thing to reload the ipfilter.

Sopor avatar Dec 03 '20 17:12 Sopor

I can look at maybe detecting and using the WebUI to do a reload. And alternatively I can do some kind of gentle prompt to get people to eventually reload / restart their client of choice if the client doesn't auto-reload when the file is touched.

DavidMoore avatar Dec 06 '20 21:12 DavidMoore