add qrcode form

This commit is contained in:
clowwindy
2014-11-08 21:36:20 +08:00
parent ddc6183e49
commit 040ae7981c
11 changed files with 344 additions and 13 deletions
@@ -116,6 +116,14 @@ namespace Shadowsocks.Controller
}
}
public string GetQRCodeForCurrentServer()
{
Server server = GetCurrentServer();
string parts = server.method + ":" + server.password + "@" + server.server + ":" + server.server_port;
string base64 = System.Convert.ToBase64String(Encoding.UTF8.GetBytes(parts));
return "ss://" + base64;
}
private void updateSystemProxy()
{
if (config.enabled)