Avoid problematic local DNS resolver

This commit is contained in:
Max Lv
2018-01-16 23:17:00 -08:00
parent 195e2afbeb
commit 7297a2664c
2 changed files with 1 additions and 7 deletions
@@ -79,12 +79,6 @@ object LocalDnsService {
makeDns("Primary-2", "114.114.114.114", false)
))
this as Context
try {
val localLinkDns = Dns.getDnsResolver(this)
localDns.put(makeDns("Primary-3", localLinkDns, false))
} catch (_: Exception) { } // ignore
when (profile.route) {
Acl.BYPASS_CHN, Acl.BYPASS_LAN_CHN, Acl.GFWLIST, Acl.CUSTOM_RULES -> config
.put("PrimaryDNS", localDns)