update local.sbt

This commit is contained in:
Max Lv
2013-09-17 10:59:45 +08:00
parent 4085c186b5
commit ae2319ca04
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -3,3 +3,7 @@ import sbtandroid.AndroidPlugin._
keyalias := "travis"
publicServer := "127.0.0.1"
publicPorts := "443"
publicMethod := "rc4"
@@ -200,10 +200,16 @@ object Extra {
case _ => "127.0.0.1"
}
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 {
if (proxy == BuildConfig.SERVER) {
scala.util.Random.shuffle(Seq(20, 21, 23)).toSeq(0)
scala.util.Random.shuffle(BuildConfig.PORTS.toSeq).toSeq(0)
} else {
Integer.valueOf(settings.getString(Key.remotePort, "1984"))
}