Commit ae2319ca authored by Max Lv's avatar Max Lv

update local.sbt

parent 4085c186
...@@ -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"
...@@ -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"))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment