mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Do not attribute connections to containers based on loopback addresses
This commit is contained in:
@@ -264,6 +264,11 @@ func MapContainer2IP(m report.Node) []string {
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
// loopback addresses are shared among all namespaces
|
||||
// so we can't use them to attribute connections to a container
|
||||
if report.IsLoopback(addr) {
|
||||
continue
|
||||
}
|
||||
id := report.MakeScopedEndpointNodeID(scope, addr, "")
|
||||
result = append(result, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user