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
4c45c923
Commit
4c45c923
authored
Jan 21, 2017
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update shadowsocks-libev
parent
2181e664
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mobile/src/main/jni/shadowsocks-libev
mobile/src/main/jni/shadowsocks-libev
+1
-1
mobile/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala
...main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala
+1
-1
No files found.
shadowsocks-libev
@
1c2b6170
Subproject commit 1
9e222bad8416f20b7694bff75f2cee72a70701e
Subproject commit 1
c2b6170b9ec5443d4a3e211425bc0d5f8e18119
mobile/src/main/scala/com/github/shadowsocks/utils/TcpFastOpen.scala
View file @
4c45c923
...
@@ -46,7 +46,7 @@ object TcpFastOpen {
...
@@ -46,7 +46,7 @@ object TcpFastOpen {
def
sendEnabled
:
Boolean
=
{
def
sendEnabled
:
Boolean
=
{
val
file
=
new
File
(
"/proc/sys/net/ipv4/tcp_fastopen"
)
val
file
=
new
File
(
"/proc/sys/net/ipv4/tcp_fastopen"
)
file
.
canRead
&&
(
Source
.
fromFile
(
file
).
mkString
.
toInt
&
1
)
>
0
file
.
canRead
&&
(
Source
.
fromFile
(
file
).
mkString
.
t
rim
.
t
oInt
&
1
)
>
0
}
}
def
enabled
(
value
:
Boolean
)
:
String
=
if
(
sendEnabled
!=
value
)
{
def
enabled
(
value
:
Boolean
)
:
String
=
if
(
sendEnabled
!=
value
)
{
...
...
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