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
ae2319ca
Commit
ae2319ca
authored
Sep 17, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update local.sbt
parent
4085c186
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
local.sbt.example
local.sbt.example
+4
-0
src/main/scala/com/github/shadowsocks/Utils.scala
src/main/scala/com/github/shadowsocks/Utils.scala
+8
-2
No files found.
local.sbt.example
View file @
ae2319ca
...
@@ -3,3 +3,7 @@ import sbtandroid.AndroidPlugin._
...
@@ -3,3 +3,7 @@ import sbtandroid.AndroidPlugin._
keyalias := "travis"
keyalias := "travis"
publicServer := "127.0.0.1"
publicServer := "127.0.0.1"
publicPorts := "443"
publicMethod := "rc4"
src/main/scala/com/github/shadowsocks/Utils.scala
View file @
ae2319ca
...
@@ -200,10 +200,16 @@ object Extra {
...
@@ -200,10 +200,16 @@ object Extra {
case
_
=>
"127.0.0.1"
case
_
=>
"127.0.0.1"
}
}
val
sitekey
=
settings
.
getString
(
Key
.
sitekey
,
"default"
)
val
sitekey
=
settings
.
getString
(
Key
.
sitekey
,
"default"
)
val
encMethod
=
settings
.
getString
(
Key
.
encMethod
,
"table"
)
val
encMethod
=
{
if
(
proxy
==
BuildConfig
.
SERVER
)
{
BuildConfig
.
METHOD
}
else
{
settings
.
getString
(
Key
.
encMethod
,
"table"
)
}
}
val
remotePort
:
Int
=
try
{
val
remotePort
:
Int
=
try
{
if
(
proxy
==
BuildConfig
.
SERVER
)
{
if
(
proxy
==
BuildConfig
.
SERVER
)
{
scala
.
util
.
Random
.
shuffle
(
Seq
(
20
,
21
,
23
)
).
toSeq
(
0
)
scala
.
util
.
Random
.
shuffle
(
BuildConfig
.
PORTS
.
toSeq
).
toSeq
(
0
)
}
else
{
}
else
{
Integer
.
valueOf
(
settings
.
getString
(
Key
.
remotePort
,
"1984"
))
Integer
.
valueOf
(
settings
.
getString
(
Key
.
remotePort
,
"1984"
))
}
}
...
...
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