Set isTapTarget to always true again since filterAuthorities implementation has problems

This commit is contained in:
M. Mert Yildiran 2021-08-27 05:06:01 +03:00
parent 510a68933f
commit b2abd7b990
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -102,6 +102,8 @@ func (factory *tcpStreamFactory) WaitGoRoutines() {
func (factory *tcpStreamFactory) getStreamProps(srcIP string, dstIP string, dstPort string) *streamProps {
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)) {
rlog.Debugf("getStreamProps %s", fmt.Sprintf("+ host1 %s:%s", dstIP, dstPort))
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))
return &streamProps{isTapTarget: true, isOutgoing: true}
}
return &streamProps{isTapTarget: false}
return &streamProps{isTapTarget: true, isOutgoing: false}
} else {
isOutgoing := !inArrayString(ownIps, dstIP)