mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-08 03:54:18 +00:00
Set isTapTarget
to always true
again since filterAuthorities
implementation has problems
This commit is contained in:
parent
510a68933f
commit
b2abd7b990
@ -102,6 +102,8 @@ func (factory *tcpStreamFactory) WaitGoRoutines() {
|
|||||||
|
|
||||||
func (factory *tcpStreamFactory) getStreamProps(srcIP string, dstIP string, dstPort string) *streamProps {
|
func (factory *tcpStreamFactory) getStreamProps(srcIP string, dstIP string, dstPort string) *streamProps {
|
||||||
if hostMode {
|
if hostMode {
|
||||||
|
// TODO: Fix `filterAuthorities` logic or value. Default `isTapTarget: true` causes;
|
||||||
|
// RabbitMQ server->client pushes to not show up for example. Where the client is the tapped pod.
|
||||||
if inArrayString(gSettings.filterAuthorities, fmt.Sprintf("%s:%s", dstIP, dstPort)) {
|
if inArrayString(gSettings.filterAuthorities, fmt.Sprintf("%s:%s", dstIP, dstPort)) {
|
||||||
rlog.Debugf("getStreamProps %s", fmt.Sprintf("+ host1 %s:%s", dstIP, dstPort))
|
rlog.Debugf("getStreamProps %s", fmt.Sprintf("+ host1 %s:%s", dstIP, dstPort))
|
||||||
return &streamProps{isTapTarget: true, isOutgoing: false}
|
return &streamProps{isTapTarget: true, isOutgoing: false}
|
||||||
@ -112,7 +114,7 @@ func (factory *tcpStreamFactory) getStreamProps(srcIP string, dstIP string, dstP
|
|||||||
rlog.Debugf("getStreamProps %s", fmt.Sprintf("+ host3 %s", srcIP))
|
rlog.Debugf("getStreamProps %s", fmt.Sprintf("+ host3 %s", srcIP))
|
||||||
return &streamProps{isTapTarget: true, isOutgoing: true}
|
return &streamProps{isTapTarget: true, isOutgoing: true}
|
||||||
}
|
}
|
||||||
return &streamProps{isTapTarget: false}
|
return &streamProps{isTapTarget: true, isOutgoing: false}
|
||||||
} else {
|
} else {
|
||||||
isOutgoing := !inArrayString(ownIps, dstIP)
|
isOutgoing := !inArrayString(ownIps, dstIP)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user