+ dhcpd: CheckConfig()

This commit is contained in:
Simon Zolin 2019-05-14 15:50:07 +03:00
parent 0d405c0af8
commit cc366495d3
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ func printInterfaces() {
log.Info("Available network interfaces: %s", buf.String())
}
// CheckConfig checks the configuration
func (s *Server) CheckConfig(config ServerConfig) error {
tmpServer := Server{}
return tmpServer.setConfig(config)
}
// Init checks the configuration and initializes the server
func (s *Server) Init(config ServerConfig) error {
err := s.setConfig(config)