Commit 027b2ea1 authored by Max Lv's avatar Max Lv

use ss:// insead #51

parent 9511a616
...@@ -10,8 +10,8 @@ object Parser { ...@@ -10,8 +10,8 @@ object Parser {
try { try {
Log.d(TAG, data) Log.d(TAG, data)
val uri = Uri.parse(data.trim) val uri = Uri.parse(data.trim)
if (uri.isOpaque && uri.getScheme == Scheme.SS) { if (uri.getScheme == Scheme.SS) {
val encoded = data.replace(Scheme.SS + ":", "") val encoded = data.replace(Scheme.SS + "://", "")
val content = new String(Base64.decode(encoded, Base64.NO_PADDING), "UTF-8") val content = new String(Base64.decode(encoded, Base64.NO_PADDING), "UTF-8")
val info = content.split('@') val info = content.split('@')
val encinfo = info(0).split(':') val encinfo = info(0).split(':')
......
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