- DNS: configuration settings were not applied until full restart

This commit is contained in:
Simon Zolin
2019-12-19 14:49:15 +03:00
parent 00fabb0ecf
commit d65cdd4544
2 changed files with 2 additions and 19 deletions

View File

@@ -121,7 +121,7 @@ func (s *Server) handleSetConfig(w http.ResponseWriter, r *http.Request) {
s.conf.ConfigModified()
if restart {
err = s.Restart()
err = s.Reconfigure(nil)
if err != nil {
httpError(r, w, http.StatusInternalServerError, "%s", err)
return
@@ -172,7 +172,7 @@ func (s *Server) handleSetUpstreamConfig(w http.ResponseWriter, r *http.Request)
s.Unlock()
s.conf.ConfigModified()
err = s.Restart()
err = s.Reconfigure(nil)
if err != nil {
httpError(r, w, http.StatusInternalServerError, "%s", err)
return