Переглянути джерело

bugfix:
- skip overwrite mac in full mac-table for unknown ip record

Dmitriev Roman 4 роки тому
батько
коміт
ebb80b798a
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      scripts/fetch_new_arp.pl

+ 1 - 0
scripts/fetch_new_arp.pl

@@ -172,6 +172,7 @@ my @auth_full_list=get_records_sql($dbh,$auth_sql);
 foreach my $auth (@auth_full_list) {
     next if (!$auth);
     my $auth_mac=mac_simplify($auth->{mac});
+    next if (exists $auth_table{full_table}{$auth_mac});
     $auth_table{full_table}{$auth_mac}=$auth->{id};
     }