Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Bitmask Core Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Android Libs
Bitmask Core Android
Commits
c807103b
Commit
c807103b
authored
2 years ago
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
don't log each write and read action
parent
a1439342
Branches
tun2torsocks
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tun2torsocks/tun2torsocks.go
+2
-2
2 additions, 2 deletions
tun2torsocks/tun2torsocks.go
with
2 additions
and
2 deletions
tun2torsocks/tun2torsocks.go
+
2
−
2
View file @
c807103b
...
...
@@ -28,7 +28,7 @@ type TorSocksTunnel struct {
// InputPacket writes IP packets to the socks interface using lwIP stack.
func
(
t
*
TorSocksTunnel
)
InputPacket
(
data
[]
byte
)
{
if
t
.
lwipStack
!=
nil
{
t
.
log
(
"writing "
,
data
)
//
t.log("writing ", data)
t
.
lwipStack
.
Write
(
data
)
}
}
...
...
@@ -39,8 +39,8 @@ func (t *TorSocksTunnel) Start(socksOutput SocksOutput, proxyHost string, proxyP
t
.
lwipStack
=
core
.
NewLWIPStack
()
core
.
RegisterTCPConnHandler
(
socks
.
NewTCPHandler
(
proxyHost
,
uint16
(
proxyPort
)))
core
.
RegisterOutputFn
(
func
(
data
[]
byte
)
(
int
,
error
)
{
t
.
log
(
"reading "
,
data
)
socksOutput
.
WritePacket
(
data
)
// t.log("reading ", data)
return
len
(
data
),
nil
})
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment