http status, set config

This commit is contained in:
Simon Zolin
2020-04-30 13:24:40 +03:00
parent c8db736745
commit f5a50e2bc3
4 changed files with 59 additions and 13 deletions

View File

@@ -284,6 +284,11 @@ func getIfaceIPv6(iface net.Interface) []net.IP {
// Start - start server
func (s *V6Server) Start(iface net.Interface) error {
if !s.conf.Enabled {
return nil
}
log.Debug("DHCPv6: starting...")
s.conf.dnsIPAddrs = getIfaceIPv6(iface)
if len(s.conf.dnsIPAddrs) == 0 {
return fmt.Errorf("DHCPv6: no IPv6 address for interface %s", iface.Name)