From 56271819eaaee84c22ce55d1421bc8cd7b719a69 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 18 Mar 2019 12:38:37 +0300 Subject: [PATCH] - control: filtering/add_url: don't call httpError() twice on error while reconfiguring --- control.go | 1 + 1 file changed, 1 insertion(+) diff --git a/control.go b/control.go index 6ec2f009..0dbd9c42 100644 --- a/control.go +++ b/control.go @@ -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)