From cc366495d39bb818d2168742496d08e80adb452a Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Tue, 14 May 2019 15:50:07 +0300 Subject: [PATCH] + dhcpd: CheckConfig() --- dhcpd/dhcpd.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dhcpd/dhcpd.go b/dhcpd/dhcpd.go index a0bec1fb..292cb244 100644 --- a/dhcpd/dhcpd.go +++ b/dhcpd/dhcpd.go @@ -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)