From 9521ee1ca0d80e5b923112e867422c7fa2bda8ff Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 12 Jun 2021 12:30:11 -0300 Subject: [PATCH] actually fix --- src/main/kotlin/com/viaversion/aas/web/WebDashboardServer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/viaversion/aas/web/WebDashboardServer.kt b/src/main/kotlin/com/viaversion/aas/web/WebDashboardServer.kt index 18fa4fd..32e111a 100644 --- a/src/main/kotlin/com/viaversion/aas/web/WebDashboardServer.kt +++ b/src/main/kotlin/com/viaversion/aas/web/WebDashboardServer.kt @@ -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) { } }