This commit is contained in:
Mygod
2016-03-16 22:31:07 +08:00
parent e99a0eaafc
commit 555f4f6854
4 changed files with 43 additions and 55 deletions
@@ -39,6 +39,9 @@
package com.github.shadowsocks.database
import java.util.Locale
import android.util.Base64
import com.j256.ormlite.field.{DataType, DatabaseField}
class Profile {
@@ -95,4 +98,7 @@ class Profile {
@DatabaseField
var userOrder: Long = _
override def toString = "ss://" + Base64.encodeToString("%s:%s@%s:%d".formatLocal(Locale.ENGLISH,
method, password, host, remotePort).getBytes, Base64.NO_PADDING | Base64.NO_WRAP)
}