mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-27 09:18:58 +03:00
- control: filtering/add_url: don't call httpError() twice on error while reconfiguring
This commit is contained in:
parent
a9b329daf6
commit
56271819ea
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue