mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-16 03:45:45 +03:00
* control: filtering/refresh: force update filters
This commit is contained in:
parent
6f56eb4c12
commit
d7b1825cf5
@ -738,8 +738,7 @@ func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
|
||||
log.Tracef("%s %v", r.Method, r.URL)
|
||||
force := r.URL.Query().Get("force")
|
||||
updated := refreshFiltersIfNecessary(force != "")
|
||||
updated := refreshFiltersIfNecessary(true)
|
||||
fmt.Fprintf(w, "OK %d filters updated\n", updated)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user