+ dhcpd: CheckConfig()
This commit is contained in:
parent
0d405c0af8
commit
cc366495d3
|
@ -75,6 +75,12 @@ func printInterfaces() {
|
||||||
log.Info("Available network interfaces: %s", buf.String())
|
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
|
// Init checks the configuration and initializes the server
|
||||||
func (s *Server) Init(config ServerConfig) error {
|
func (s *Server) Init(config ServerConfig) error {
|
||||||
err := s.setConfig(config)
|
err := s.setConfig(config)
|
||||||
|
|
Loading…
Reference in New Issue