Commit e5114f8b authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Actually trigger a resolve

parent e1522e61
......@@ -173,7 +173,7 @@ fun okhttpClientWithDoh(context: Context, forceDefaultFallback: Boolean = false)
val dns = if(hasKnownIPAddresses) {
val addressCreator = fallback.servers.first().address.addressCreator
val addresses = addressCreator.getResolveResultOrNull()?.toMutableList() ?: mutableListOf()
val addresses = addressCreator.resolveOrGetResultOrNull()?.toMutableList() ?: mutableListOf()
if (addresses.isNullOrEmpty() && addressCreator.hostAddress != null) {
addresses.add(InetAddress.getByName(addressCreator.hostAddress))
}
......
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