Revert some of the changes in be7c65eb6d

This commit is contained in:
M. Mert Yildiran 2021-08-25 20:00:00 +03:00
parent efe8e849e4
commit 08e7d786d8
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -94,6 +94,8 @@ func (factory *tcpStreamFactory) WaitGoRoutines() {
func (factory *tcpStreamFactory) getStreamProps(srcIP string, dstIP string, dstPort string) *streamProps {
if hostMode {
// TODO: Bring back `filterAuthorities`
return &streamProps{isTapTarget: true, isOutgoing: false}
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}