Commit 7297a266 authored by Max Lv's avatar Max Lv

Avoid problematic local DNS resolver

parent 195e2afb
Subproject commit 445ca9003efff4b853ea8ebf49d7c0854ebb31b0 Subproject commit 466f9902c9779b8801f521f88db1d1522c880c26
...@@ -79,12 +79,6 @@ object LocalDnsService { ...@@ -79,12 +79,6 @@ object LocalDnsService {
makeDns("Primary-2", "114.114.114.114", false) 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) { when (profile.route) {
Acl.BYPASS_CHN, Acl.BYPASS_LAN_CHN, Acl.GFWLIST, Acl.CUSTOM_RULES -> config Acl.BYPASS_CHN, Acl.BYPASS_LAN_CHN, Acl.GFWLIST, Acl.CUSTOM_RULES -> config
.put("PrimaryDNS", localDns) .put("PrimaryDNS", localDns)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment