Skip to content

Commit

Permalink
fix ingress and egress
Browse files Browse the repository at this point in the history
Signed-off-by: yasin-cs-ko-ak <yasin@accuknox.com>
  • Loading branch information
yasin-cs-ko-ak committed Dec 17, 2022
1 parent bdf322d commit 711296c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/observability/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ func extractNetworkInfoFromSystemLog(netLog pb.Log, pods []types.Pod, services [
}
}
}
}
if strings.Contains(netLog.Data, "SYS_BIND") {
bindAddress = ip
protocol = "AF_UNIX"
}

if strings.Contains(netLog.Data, "SYS_BIND") {
bindAddress = ip
} else if strings.Contains(netLog.Data, "SYS_BIND") {
resslice := strings.Split(netLog.Resource, " ")
for _, locres := range resslice {
if strings.Contains(locres, "sin_port") {
Expand Down

0 comments on commit 711296c

Please sign in to comment.