http status, set config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user