Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
08e7d786
Unverified
Commit
08e7d786
authored
3 years ago
by
M. Mert Yildiran
Browse files
Options
Download
Email Patches
Plain Diff
Revert some of the changes in
be7c65eb
parent
efe8e849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tap/tcp_stream_factory.go
+2
-0
tap/tcp_stream_factory.go
with
2 additions
and
0 deletions
+2
-0
tap/tcp_stream_factory.go
+
2
-
0
View file @
08e7d786
...
@@ -94,6 +94,8 @@ func (factory *tcpStreamFactory) WaitGoRoutines() {
...
@@ -94,6 +94,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: Bring back `filterAuthorities`
return
&
streamProps
{
isTapTarget
:
true
,
isOutgoing
:
false
}
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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment