diff --git a/DnsServerCore/Dhcp/Scope.cs b/DnsServerCore/Dhcp/Scope.cs index 6a88bd30..b548334f 100644 --- a/DnsServerCore/Dhcp/Scope.cs +++ b/DnsServerCore/Dhcp/Scope.cs @@ -646,7 +646,8 @@ namespace DnsServerCore.Dhcp expiredLeases.Add(expiredLease); } - _lastModified = DateTime.UtcNow; + if (expiredLeaseKeys.Count > 0) + _lastModified = DateTime.UtcNow; return expiredLeases; }