diff --git a/TMessagesProj/src/main/java/org/telegram/tgnet/ConnectionsManager.java b/TMessagesProj/src/main/java/org/telegram/tgnet/ConnectionsManager.java index 05c619809..d244b2a4b 100644 --- a/TMessagesProj/src/main/java/org/telegram/tgnet/ConnectionsManager.java +++ b/TMessagesProj/src/main/java/org/telegram/tgnet/ConnectionsManager.java @@ -910,7 +910,7 @@ public class ConnectionsManager extends BaseController { result = new InetAddress[0]; } - return new ResolvedDomain(result, 10 * 60 * 1000L); + return new ResolvedDomain(result, SystemClock.elapsedRealtime()); } diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/DnsFactory.kt b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/DnsFactory.kt index 6ee8c1ab8..ad023198f 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/DnsFactory.kt +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/DnsFactory.kt @@ -87,7 +87,7 @@ object DnsFactory { } } - FileLog.d("Try system dns") + FileLog.d("Try system dns to resolve $domain") try { return InetAddress.getAllByName(domain).toList()