+ DNS servers, real SID, check SID

This commit is contained in:
Simon Zolin
2020-04-29 15:32:30 +03:00
parent 7e5648d349
commit 7d3a46d644
2 changed files with 92 additions and 7 deletions

View File

@@ -134,6 +134,9 @@ func Create(config ServerConfig) *Server {
}
s.srv6 = v6Create(config.Conf6)
if s.srv6 == nil {
return nil
}
// we can't delay database loading until DHCP server is started,
// because we need static leases functionality available beforehand
@@ -165,6 +168,7 @@ func (s *Server) notify(flags int) {
// WriteDiskConfig - write configuration
func (s *Server) WriteDiskConfig(c *ServerConfig) {
*c = s.conf
s.srv6.WriteDiskConfig(&c.Conf6)
}
func (s *Server) setConfig(config ServerConfig) error {