Skip to content

Commit

Permalink
Merge pull request #634 from yasin-cs-ko-ak/ine
Browse files Browse the repository at this point in the history
fix ingress and egress
  • Loading branch information
nyrahul authored Dec 19, 2022
2 parents 4a5255a + 5d56be1 commit 04d23d4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/observability/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ func extractNetworkInfoFromSystemLog(netLog pb.Log, pods []types.Pod, services [
path = strings.Split(locres, "=")[1]
if path != "" {
ip = path
protocol = "UNIX"
bindAddress = path
protocol = "AF_UNIX"
break
}
}
}
}

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 04d23d4

Please sign in to comment.