Skip to content

Commit

Permalink
Merge pull request #114 from BenB196/staging
Browse files Browse the repository at this point in the history
Staging to master
  • Loading branch information
BenB196 authored Oct 7, 2020
2 parents 5ed1b42 + 2ef8541 commit ba04569
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0
0.4.1
18 changes: 16 additions & 2 deletions ffsEvent/ffsFetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,20 @@ func queryFetcher(query config.FFSQuery, inProgressQueries *[]eventOutput.InProg
}

//host ips
ips := ffsEvent.PrivateIpAddresses
ips = append(ips, ffsEvent.PublicIpAddress)

var ips []string

if ffsEvent.PrivateIpAddresses != nil && len(ffsEvent.PrivateIpAddresses) != 0 {
ips = append(ips, ffsEvent.PrivateIpAddresses...)
}

if ffsEvent.PublicIpAddress != "" {
ips = append(ips, ffsEvent.PublicIpAddress)
}

if ips != nil && len(ips) == 0 {
ips = nil
}

var geo *eventOutput.Geo
if location != nil {
Expand Down Expand Up @@ -708,6 +720,8 @@ func queryFetcher(query config.FFSQuery, inProgressQueries *[]eventOutput.InProg
panic(err)
}
}
} else {
enrichmentTime = time.Now()
}
outputTime := time.Now()

Expand Down

0 comments on commit ba04569

Please sign in to comment.