Refine black list

This commit is contained in:
Max Lv
2016-06-30 11:01:41 +08:00
parent e9c912b935
commit bfd85ecb8e
4 changed files with 3 additions and 20 deletions
@@ -116,9 +116,6 @@ object ConfigUtils {
| label = "china-servers";
| ip = 114.114.114.114, 112.124.47.27;
| timeout = 4;
| reject = %s;
| reject_policy = fail;
| reject_recursively = on;
| exclude = %s;
| policy = included;
| uptest = none;
@@ -157,17 +154,6 @@ object ConfigUtils {
if (holder != null) holder.refresh()
}
def getRejectList(context: Context): String = {
val default = context.getString(R.string.reject)
try {
val container = app.containerHolder.getContainer
val update = container.getString("reject")
if (update == null || update.isEmpty) default else update
} catch {
case ex: Exception => default
}
}
def getBlackList(context: Context): String = {
val default = context.getString(R.string.black_list)
try {