Explorar o código

set mute for the same type of dhcp request

Roman Dmitriev %!s(int64=2) %!d(string=hai) anos
pai
achega
b50f1a001a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/dhcp-log.pl

+ 1 - 1
scripts/dhcp-log.pl

@@ -114,7 +114,7 @@ if (!$pid) {
             next if (!$type);
             next if ($type!~/(old|add|del)/i);
 
-            if (exists $leases{$ip} and time()-$leases{$ip}{last_time} <= $mute_time) { next; }
+            if (exists $leases{$ip} and $leases{$ip}{'type'} eq $type and time()-$leases{$ip}{last_time} <= $mute_time) { next; }
 
             if (time()-$last_refresh_config>=60) { init_option($hdb); }