Skip to content

Commit

Permalink
Fix http.log Filter for Proxy Entries (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
fullmetalcache authored Dec 7, 2021
1 parent 759a9ac commit c75fbcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parser/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ func parseHTTPEntry(parseHTTP *parsetypes.HTTP, filter filter, retVals ParseResu
// (e.g., beacons), where false positives might arise due to the proxy IP
// appearing as a destination, while still allowing for processing that
// data for the proxy modules
if dstIsProxy && (filter.filterDomain(fqdn) || filter.filterSingleIP(srcIP)) {
return
if dstIsProxy {
if filter.filterDomain(fqdn) || filter.filterSingleIP(srcIP) {
return
}
} else if filter.filterDomain(fqdn) || filter.filterConnPair(srcIP, dstIP) {
return
}
Expand Down

0 comments on commit c75fbcc

Please sign in to comment.