- control: filtering/add_url: don't call httpError() twice on error while reconfiguring

This commit is contained in:
Simon Zolin 2019-03-18 12:38:37 +03:00
parent a9b329daf6
commit 56271819ea
1 changed files with 1 additions and 0 deletions

View File

@ -620,6 +620,7 @@ func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
err = reconfigureDNSServer()
if err != nil {
httpError(w, http.StatusInternalServerError, "Couldn't reconfigure the DNS server: %s", err)
return
}
_, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)