Explorar el Código

set mute for the same type of dhcp request

Roman Dmitriev hace 2 años
padre
commit
b50f1a001a
Se han modificado 1 ficheros con 1 adiciones y 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); }