Fix #767
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user