add GUI for user rule support

This commit is contained in:
clowwindy
2015-03-06 23:02:07 +08:00
parent 3e16978968
commit eb2e5cc242
8 changed files with 55 additions and 9 deletions
@@ -96,6 +96,19 @@ namespace Shadowsocks.Controller
}
}
internal string TouchUserRuleFile()
{
if (File.Exists(USER_RULE_FILE))
{
return USER_RULE_FILE;
}
else
{
File.WriteAllText(USER_RULE_FILE, Resources.user_rule);
return USER_RULE_FILE;
}
}
private string GetPACContent()
{
if (File.Exists(PAC_FILE))