When import settings from url, some characters are neglected
yku12cn opened this issue · 1 comments
I'm not quite sure this is a bug for "shadowsocks-android" or "v2ray-plugin-android"
Since this only happens with v2ray-plugin-android, I post this here.
Assume we have a setting like the following:
Server: v2ray.demo.com
Port: 443
Password: password
Encrypt: AES-256-CFB
Plugin: v2ray
Transport mode: websocket-http
hostname: demo.com
path: /s2_server
loglevel: none
If we use shadowsocks-android's back-up to clipboard, we will get this:
ss://YWVzLTI1Ni1jZmI6cGFzc3dvcmQ@v2ray.demo.com:443?plugin=v2ray%3Bpath%3D%2Fs2_server%3Bloglevel%3Dnone%3Bhost%3Ddemo.com
If we import this URI to the windows client, everything is correct
If we import this back to shadowsocks-android. it will turn out to be:
Server: v2ray.demo.com
Port: 443
Password: password
Encrypt: AES-256-CFB
Plugin: v2ray
Transport mode: websocket-http
hostname: cloudfront.com
path: /s2
loglevel: warning
Note, all information after the "_" sign in the URI is neglected.
The "_" is introduced by the path variable "/s2_server". Since "_" is a very common character in URL, it should be correctly processed.
Already fixed in anther thread.