From 052a9ae19633d27db176d26369acc092ca085ecd Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Thu, 22 Oct 2020 18:20:16 +0300 Subject: [PATCH] - (home): test upstream shouldn't fail with upstreams file Closes: #2212 --- dnsforward/dnsforward_http.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dnsforward/dnsforward_http.go b/dnsforward/dnsforward_http.go index 480f977e..56a173ba 100644 --- a/dnsforward/dnsforward_http.go +++ b/dnsforward/dnsforward_http.go @@ -371,11 +371,6 @@ func (s *Server) handleTestUpstreamDNS(w http.ResponseWriter, r *http.Request) { return } - if len(req.Upstreams) == 0 { - httpError(r, w, http.StatusBadRequest, "No servers specified") - return - } - result := map[string]string{} for _, host := range req.Upstreams {