From edf603018d0c3a8e3772fcc96fdd79eca4e6deee Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 12 Jun 2021 12:22:38 -0300 Subject: [PATCH] fix hostname in PTR --- 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 d96c4b6..18fa4fd 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 }?.name() + ptr = dnsQuery.suspendAwait().first { it is DnsPtrRecord }?.hostname() } catch (ignored: Exception) { } }