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
8eed34dc
Commit
8eed34dc
authored
Dec 24, 2016
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create default profile when creating new profiles
parent
0fe62e25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
src/main/scala/com/github/shadowsocks/database/Profile.scala
src/main/scala/com/github/shadowsocks/database/Profile.scala
+2
-2
src/main/scala/com/github/shadowsocks/database/ProfileManager.scala
...cala/com/github/shadowsocks/database/ProfileManager.scala
+0
-10
No files found.
src/main/scala/com/github/shadowsocks/database/Profile.scala
View file @
8eed34dc
...
...
@@ -37,7 +37,7 @@ class Profile {
var
name
:
String
=
""
@DatabaseField
var
host
:
String
=
""
var
host
:
String
=
"
198.199.101.152
"
// hopefully hashCode = mHandle doesn't change, currently this is true from KitKat to Nougat
@DatabaseField
...
...
@@ -47,7 +47,7 @@ class Profile {
var
remotePort
:
Int
=
8388
@DatabaseField
var
password
:
String
=
""
var
password
:
String
=
"
u1rRWTssNv0p
"
@DatabaseField
var
method
:
String
=
"aes-256-cfb"
...
...
src/main/scala/com/github/shadowsocks/database/ProfileManager.scala
View file @
8eed34dc
...
...
@@ -122,14 +122,4 @@ class ProfileManager(dbHelper: DBHelper) {
None
}
}
def
createDefault
()
:
Profile
=
{
val
profile
=
new
Profile
{
name
=
"Default"
host
=
"198.199.101.152"
remotePort
=
443
password
=
"u1rRWTssNv0p"
}
createProfile
(
profile
)
}
}
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