- 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

@@ -352,23 +352,6 @@ func (s *Server) IsRunning() bool {
return s.isRunning
}
// Restart - restart server
func (s *Server) Restart() error {
s.Lock()
defer s.Unlock()
log.Print("Start reconfiguring the server")
err := s.stopInternal()
if err != nil {
return errorx.Decorate(err, "could not reconfigure the server")
}
err = s.startInternal()
if err != nil {
return errorx.Decorate(err, "could not reconfigure the server")
}
return nil
}
// Reconfigure applies the new configuration to the DNS server
func (s *Server) Reconfigure(config *ServerConfig) error {
s.Lock()