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
8172befb
Commit
8172befb
authored
Oct 27, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ready to add more public servers
parent
702b7d91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
project/Build.scala
project/Build.scala
+2
-2
src/main/scala/com/github/shadowsocks/Utils.scala
src/main/scala/com/github/shadowsocks/Utils.scala
+8
-4
No files found.
project/Build.scala
View file @
8172befb
...
...
@@ -5,8 +5,8 @@ import sbtandroid._
import
sbtandroid.AndroidPlugin._
object
App
{
val
version
=
"2.0.
1
"
val
versionCode
=
5
2
val
version
=
"2.0.
2
"
val
versionCode
=
5
3
}
object
General
{
...
...
src/main/scala/com/github/shadowsocks/Utils.scala
View file @
8172befb
...
...
@@ -112,10 +112,14 @@ object Config {
}
def
getPublicConfig
(
container
:
Container
,
config
:
Config
)
:
Config
=
{
val
host
=
container
.
getString
(
"host"
)
val
port
=
util
.
Random
.
shuffle
(
container
.
getString
(
"port"
).
split
(
','
).
toSeq
).
toSeq
(
0
).
toInt
val
method
=
container
.
getString
(
"method"
)
val
password
=
container
.
getString
(
"password"
)
val
list
=
container
.
getString
(
"proxy_list"
)
val
proxies
=
util
.
Random
.
shuffle
(
list
.
split
(
'|'
).
toSeq
).
toSeq
val
proxy
=
proxies
(
0
).
split
(
':'
)
val
host
=
proxy
(
0
)
val
port
=
proxy
(
1
).
toInt
val
password
=
proxy
(
2
)
val
method
=
proxy
(
3
)
new
Config
(
config
.
isGlobalProxy
,
config
.
isGFWList
,
config
.
isBypassApps
,
config
.
isTrafficStat
,
config
.
profileName
,
host
,
password
,
method
,
port
,
config
.
localPort
,
config
.
proxiedAppString
)
...
...
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