ソースを参照

set mute for the same type of dhcp request

Roman Dmitriev 2 年 前
コミット
b50f1a001a
1 ファイル変更1 行追加1 行削除
  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); }