Commit d1e3e612 authored by Mygod's avatar Mygod

Canonicalize DNS input

parent fb519799
......@@ -123,7 +123,7 @@ class LocalDnsServer(private val localResolver: suspend (String) -> Array<InetAd
Type.AAAA -> true
else -> return@supervisorScope remote.await()
}
val host = question.name.toString(true)
val host = question.name.canonicalize().toString(true)
val hostsResults = hosts.resolve(host, isIpv6)
if (hostsResults.isNotEmpty()) {
remote.cancel()
......
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