This commit is contained in:
Simon Zolin
2020-05-19 19:07:15 +03:00
parent 6280a1ad02
commit cdb00a5db7
2 changed files with 100 additions and 2 deletions

View File

@@ -326,6 +326,8 @@ func (s *V6Server) process(msg *dhcpv6.Message, req dhcpv6.DHCPv6, resp dhcpv6.D
return false
}
// lock
lease := s.findLease(mac)
if lease == nil {
log.Debug("DHCPv6: no lease for: %s", mac)
@@ -345,7 +347,7 @@ func (s *V6Server) process(msg *dhcpv6.Message, req dhcpv6.DHCPv6, resp dhcpv6.D
err = s.checkIA(msg, lease)
if err != nil {
log.Debug("DHCPv6: %s", mac)
log.Debug("DHCPv6: %s", err)
return false
}