Permalink
Browse files

Enlarge local DNS timeout

  • Loading branch information...
madeye committed May 29, 2018
1 parent 16672a1 commit 2b3524df5a3a7455888247131645e3bf0b590fe4
Showing with 4 additions and 4 deletions.
  1. +4 −4 mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt
@@ -62,11 +62,11 @@ object LocalDnsService {
.put("MinimumTTL", 120)
.put("CacheSize", 4096)
val remoteDns = JSONArray(profile.remoteDns.split(",")
.mapIndexed { i, dns -> makeDns("UserDef-$i", dns.trim() + ":53", 9) })
.mapIndexed { i, dns -> makeDns("UserDef-$i", dns.trim() + ":53", 12) })
val localDns = JSONArray(arrayOf(
makeDns("Primary-1", "208.67.222.222:443", 3, false),
makeDns("Primary-2", "119.29.29.29:53", 3, false),
makeDns("Primary-3", "114.114.114.114:53", 3, false)
makeDns("Primary-1", "208.67.222.222:443", 9, false),
makeDns("Primary-2", "119.29.29.29:53", 9, false),
makeDns("Primary-3", "114.114.114.114:53", 9, false)
))

when (profile.route) {

0 comments on commit 2b3524d

Please sign in to comment.