Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
9d190fd5
Commit
9d190fd5
authored
Aug 30, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TCP fast open support for ss-tunnel
parent
dd33586f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
core/src/main/java/com/github/shadowsocks/bg/TransproxyService.kt
.../main/java/com/github/shadowsocks/bg/TransproxyService.kt
+4
-2
core/src/main/jni/shadowsocks-libev
core/src/main/jni/shadowsocks-libev
+1
-1
No files found.
core/src/main/java/com/github/shadowsocks/bg/TransproxyService.kt
View file @
9d190fd5
...
...
@@ -40,13 +40,15 @@ class TransproxyService : Service(), LocalDnsService.Interface {
super
<
LocalDnsService
.
Interface
>.
onStartCommand
(
intent
,
flags
,
startId
)
private
fun
startDNSTunnel
()
{
data
.
processes
.
start
(
l
istOf
(
File
(
applicationInfo
.
nativeLibraryDir
,
Executable
.
SS_TUNNEL
).
absolutePath
,
val
cmd
=
arrayL
istOf
(
File
(
applicationInfo
.
nativeLibraryDir
,
Executable
.
SS_TUNNEL
).
absolutePath
,
"-t"
,
"10"
,
"-b"
,
DataStore
.
listenAddress
,
"-u"
,
"-l"
,
DataStore
.
portLocalDns
.
toString
(),
// ss-tunnel listens on the same port as overture
"-L"
,
data
.
profile
!!
.
remoteDns
.
split
(
","
).
first
().
trim
()
+
":53"
,
"-c"
,
data
.
shadowsocksConfigFile
!!
.
absolutePath
))
// config is already built by BaseService.Interface
"-c"
,
data
.
shadowsocksConfigFile
!!
.
absolutePath
)
// config is already built by BaseService.Interface
if
(
DataStore
.
tcpFastOpen
)
cmd
+=
"--fast-open"
data
.
processes
.
start
(
cmd
)
}
private
fun
startRedsocksDaemon
()
{
...
...
shadowsocks-libev
@
cd98427e
Subproject commit
307088ed4af0c54ac4dd55ff3bfda5133ae67d32
Subproject commit
cd98427ebda19c8bf295651347039c542658464a
Write
Preview
Markdown
is supported
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