Skip to content

Commit

Permalink
fix switch_legacy ni pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Jun 13, 2022
1 parent 2eb0500 commit 7d57ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inputs/switch_legacy/switch_legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ func (ins *Instance) gatherFlowMetrics(ips []string, slist *list.SafeList) {
wg.Wait()

for ip := range result {
if result[ip] == nil {
continue
}

if result[ip].IP == "" {
continue
}
Expand Down

0 comments on commit 7d57ac5

Please sign in to comment.