- control: filtering/add_url: don't call httpError() twice on error while reconfiguring
This commit is contained in:
parent
a9b329daf6
commit
56271819ea
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue