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
99ff47bd
Commit
99ff47bd
authored
Aug 16, 2016
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Promote default settings to kcptun
parent
820d71fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
kcptun/kcptun
kcptun/kcptun
+1
-1
src/main/scala/com/github/shadowsocks/database/DBHelper.scala
...main/scala/com/github/shadowsocks/database/DBHelper.scala
+2
-4
src/main/scala/com/github/shadowsocks/database/Profile.scala
src/main/scala/com/github/shadowsocks/database/Profile.scala
+1
-1
No files found.
kcptun
@
a895d2d4
Subproject commit
e8349a306372700f5e5ccbda1592ced01760088c
Subproject commit
a895d2d49bdc644693bfde138245c2dc105ce859
src/main/scala/com/github/shadowsocks/database/DBHelper.scala
View file @
99ff47bd
...
...
@@ -129,11 +129,9 @@ class DBHelper(val context: Context)
if
(
oldVersion
<
17
)
{
profileDao
.
executeRawNoArgs
(
"ALTER TABLE `profile` ADD COLUMN kcp SMALLINT;"
)
profileDao
.
executeRawNoArgs
(
"ALTER TABLE `profile` ADD COLUMN kcpcli VARCHAR DEFAULT "
+
"'--crypt none --mode normal --mtu 1200 --nocomp --dscp 46 --parityshard 0';"
)
profileDao
.
executeRawNoArgs
(
"ALTER TABLE `profile` ADD COLUMN kcpcli VARCHAR DEFAULT '--nocomp';"
)
}
else
if
(
oldVersion
<
20
)
{
profileDao
.
executeRawNoArgs
(
"UPDATE `profile` SET kcpcli = '--crypt none --mode normal --mtu 1200 --nocomp "
+
"--dscp 46 --parityshard 0' WHERE kcpcli IS NULL;"
)
profileDao
.
executeRawNoArgs
(
"UPDATE `profile` SET kcpcli = '--nocomp' WHERE kcpcli IS NULL;"
)
}
if
(
oldVersion
<
18
)
{
...
...
src/main/scala/com/github/shadowsocks/database/Profile.scala
View file @
99ff47bd
...
...
@@ -106,7 +106,7 @@ class Profile {
var
kcpPort
:
Int
=
8399
@DatabaseField
var
kcpcli
:
String
=
"--
crypt none --mode normal --mtu 1200 --nocomp --dscp 46 --parityshard 0
"
var
kcpcli
:
String
=
"--
nocomp
"
override
def
toString
=
"ss://"
+
Base64
.
encodeToString
(
"%s%s:%s@%s:%d"
.
formatLocal
(
Locale
.
ENGLISH
,
method
,
if
(
auth
)
"-auth"
else
""
,
password
,
host
,
remotePort
).
getBytes
,
Base64
.
NO_PADDING
|
Base64
.
NO_WRAP
)
...
...
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