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 a764566
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/observability/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ func extractNetworkInfoFromSystemLog(netLog pb.Log, pods []types.Pod, services [
path = strings.Split(locres, "=")[1]
if path != "" {
ip = path
protocol = "UNIX"
protocol = "AF_UNIX"
break
}
}
}
}

if strings.Contains(netLog.Data, "SYS_BIND") {
bindAddress = ip
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 a764566

Please sign in to comment.