From 2b3524df5a3a7455888247131645e3bf0b590fe4 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 29 May 2018 01:18:24 -0700 Subject: [PATCH] Enlarge local DNS timeout --- .../java/com/github/shadowsocks/bg/LocalDnsService.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt b/mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt index ac8c1e4d04..15dc3a9571 100644 --- a/mobile/src/main/java/com/github/shadowsocks/bg/LocalDnsService.kt +++ b/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) {