Skip to content

Commit

Permalink
ARP監視でチェック範囲にIPレポートも反映
Browse files Browse the repository at this point in the history
  • Loading branch information
twsnmp committed Dec 6, 2024
1 parent 0b03bd9 commit 28619fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logger/arpwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ func makeLoacalCheckAddrs() {
// 発見済みは登録しない
continue
}
if r := datastore.GetIPReport(sa); r != nil {
// IPレポートにあるものも登録しない
localHitCount++
ipMap[sa] = true
continue
}
if _, ok := ipMap[sa]; ok {
// 同じIPアドレスを追加しない。
continue
Expand Down

0 comments on commit 28619fe

Please sign in to comment.