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
38c162c6
Commit
38c162c6
authored
Nov 19, 2019
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable IPv6 routing and TCP fast open by default
parent
87b9b99d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
core/src/main/java/com/github/shadowsocks/database/Profile.kt
.../src/main/java/com/github/shadowsocks/database/Profile.kt
+2
-1
core/src/main/java/com/github/shadowsocks/preference/DataStore.kt
.../main/java/com/github/shadowsocks/preference/DataStore.kt
+1
-1
No files found.
core/src/main/java/com/github/shadowsocks/database/Profile.kt
View file @
38c162c6
...
@@ -60,7 +60,7 @@ data class Profile(
...
@@ -60,7 +60,7 @@ data class Profile(
var
proxyApps
:
Boolean
=
false
,
var
proxyApps
:
Boolean
=
false
,
var
bypass
:
Boolean
=
false
,
var
bypass
:
Boolean
=
false
,
var
udpdns
:
Boolean
=
false
,
var
udpdns
:
Boolean
=
false
,
var
ipv6
:
Boolean
=
tru
e
,
var
ipv6
:
Boolean
=
fals
e
,
@TargetApi
(
28
)
@TargetApi
(
28
)
var
metered
:
Boolean
=
false
,
var
metered
:
Boolean
=
false
,
var
individual
:
String
=
""
,
var
individual
:
String
=
""
,
...
@@ -323,6 +323,7 @@ data class Profile(
...
@@ -323,6 +323,7 @@ data class Profile(
DataStore
.
udpFallback
=
udpFallback
DataStore
.
udpFallback
=
udpFallback
DataStore
.
privateStore
.
remove
(
Key
.
dirty
)
DataStore
.
privateStore
.
remove
(
Key
.
dirty
)
}
}
fun
deserialize
()
{
fun
deserialize
()
{
check
(
id
==
0L
||
DataStore
.
editingId
==
id
)
check
(
id
==
0L
||
DataStore
.
editingId
==
id
)
DataStore
.
editingId
=
null
DataStore
.
editingId
=
null
...
...
core/src/main/java/com/github/shadowsocks/preference/DataStore.kt
View file @
38c162c6
...
@@ -64,7 +64,7 @@ object DataStore : OnPreferenceDataStoreChangeListener {
...
@@ -64,7 +64,7 @@ object DataStore : OnPreferenceDataStoreChangeListener {
?:
BootReceiver
.
enabled
.
also
{
publicStore
.
putBoolean
(
Key
.
persistAcrossReboot
,
it
)
}
?:
BootReceiver
.
enabled
.
also
{
publicStore
.
putBoolean
(
Key
.
persistAcrossReboot
,
it
)
}
val
canToggleLocked
:
Boolean
get
()
=
publicStore
.
getBoolean
(
Key
.
directBootAware
)
==
true
val
canToggleLocked
:
Boolean
get
()
=
publicStore
.
getBoolean
(
Key
.
directBootAware
)
==
true
val
directBootAware
:
Boolean
get
()
=
Core
.
directBootSupported
&&
canToggleLocked
val
directBootAware
:
Boolean
get
()
=
Core
.
directBootSupported
&&
canToggleLocked
val
tcpFastOpen
:
Boolean
get
()
=
TcpFastOpen
.
sendEnabled
&&
publicStore
.
getBoolean
(
Key
.
tfo
,
tru
e
)
val
tcpFastOpen
:
Boolean
get
()
=
TcpFastOpen
.
sendEnabled
&&
publicStore
.
getBoolean
(
Key
.
tfo
,
fals
e
)
val
serviceMode
get
()
=
publicStore
.
getString
(
Key
.
serviceMode
)
?:
Key
.
modeVpn
val
serviceMode
get
()
=
publicStore
.
getString
(
Key
.
serviceMode
)
?:
Key
.
modeVpn
val
listenAddress
get
()
=
if
(
publicStore
.
getBoolean
(
Key
.
shareOverLan
,
false
))
"0.0.0.0"
else
"127.0.0.1"
val
listenAddress
get
()
=
if
(
publicStore
.
getBoolean
(
Key
.
shareOverLan
,
false
))
"0.0.0.0"
else
"127.0.0.1"
var
portProxy
:
Int
var
portProxy
:
Int
...
...
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