refine dns black list

This commit is contained in:
Max Lv
2014-12-26 17:30:20 +08:00
parent a28303ee76
commit d1d135ccdd
4 changed files with 20 additions and 2 deletions
@@ -263,8 +263,9 @@ class ShadowsocksNatService extends Service with BaseService {
val conf = if (config.route == Route.BYPASS_CHN) {
val reject = ConfigUtils.getRejectList(getContext, application)
val blackList = ConfigUtils.getBlackList(getContext, application)
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
Path.BASE + "pdnsd-nat.pid", reject, reject, 8163)
Path.BASE + "pdnsd-nat.pid", reject, blackList, reject, blackList, 8163)
} else {
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
Path.BASE + "pdnsd-nat.pid", 8163)