Add flag to disable reporting of processes (and procspied endpoints)

This commit is contained in:
Tom Wilkie
2016-05-17 17:29:09 +01:00
parent 2113795b9e
commit 8f772a696d
8 changed files with 90 additions and 66 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ func MapEndpoint2IP(m report.Node, local report.Networks) report.Nodes {
return report.Nodes{}
}
if ip := net.ParseIP(addr); ip != nil && !local.Contains(ip) {
return report.Nodes{TheInternetID: theInternetNode(m)}
node := theInternetNode(m)
return report.Nodes{node.ID: node}
}
// We don't always know what port a container is listening on, and