actually fix

This commit is contained in:
creeper123123321 2021-06-12 12:30:11 -03:00
parent edf603018d
commit 9521ee1ca0

View File

@ -100,7 +100,7 @@ class WebDashboardServer {
DefaultDnsQuestion(reverseLookup(it.address), DnsRecordType.PTR)
)
info = ipLookup.await()
ptr = dnsQuery.suspendAwait().first { it is DnsPtrRecord }?.hostname()
ptr = dnsQuery.suspendAwait().firstNotNullOfOrNull { it as? DnsPtrRecord }?.hostname()
} catch (ignored: Exception) {
}
}