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
@@ -155,8 +155,9 @@ class ShadowsocksVpnService extends VpnService with BaseService {
val conf = {
if (Utils.isLollipopOrAbove && config.route == Route.BYPASS_CHN) {
val reject = ConfigUtils.getRejectList(getContext, application)
val blackList = ConfigUtils.getBlackList(getContext, application)
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
Path.BASE + "pdnsd-vpn.pid", reject, reject, 8163)
Path.BASE + "pdnsd-vpn.pid", reject, blackList, reject, blackList, 8163)
} else {
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
Path.BASE + "pdnsd-vpn.pid", 8163)