This commit is contained in:
Mygod
2016-07-18 14:37:18 +08:00
parent e638d90ca3
commit 360b425d47
6 changed files with 8 additions and 0 deletions
@@ -166,6 +166,8 @@ trait BaseService extends Service {
changeState(State.CONNECTING)
if (profile.isMethodUnsafe) Toast.makeText(this, R.string.method_unsafe, Toast.LENGTH_LONG).show
Utils.ThrowableFuture(connect)
}
@@ -101,4 +101,6 @@ class Profile {
override def toString = "ss://" + Base64.encodeToString("%s%s:%s@%s:%d".formatLocal(Locale.ENGLISH,
method, if (auth) "-auth" else "", password, host, remotePort).getBytes, Base64.NO_PADDING | Base64.NO_WRAP)
def isMethodUnsafe = "table".equalsIgnoreCase(method) || "rc4".equalsIgnoreCase(method)
}