From 9b4bbde7426557648a65c98ab3a3220f5e826d36 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Fri, 4 Feb 2022 08:50:46 -0300 Subject: [PATCH] generic privacy info, fix pterodactyl startup detect --- .../com/viaversion/aas/AspirinServer.kt | 7 +++ src/main/resources/web/index.html | 54 ++++++++++++++++++- src/main/resources/web/js/page.js | 2 +- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/viaversion/aas/AspirinServer.kt b/src/main/kotlin/com/viaversion/aas/AspirinServer.kt index 021a3cd..fa02fd7 100644 --- a/src/main/kotlin/com/viaversion/aas/AspirinServer.kt +++ b/src/main/kotlin/com/viaversion/aas/AspirinServer.kt @@ -28,10 +28,13 @@ import io.netty.channel.WriteBufferWaterMark import io.netty.resolver.dns.DnsNameResolverBuilder import io.netty.util.concurrent.Future import java.io.File +import java.lang.management.ManagementFactory import java.net.InetAddress import java.security.KeyPair import java.security.KeyPairGenerator import java.util.concurrent.CompletableFuture +import kotlin.time.Duration.Companion.milliseconds +import kotlin.time.DurationUnit object AspirinServer { var ktorServer: NettyApplicationEngine? = null @@ -125,6 +128,10 @@ object AspirinServer { viaaasLogger.info("Using compression: ${Natives.compress.loadedVariant}, crypto: ${Natives.cipher.loadedVariant}") viaaasLogger.info("Binded minecraft into " + chFuture!!.sync().channel().localAddress()) + viaaasLogger.info( + "Application started in " + ManagementFactory.getRuntimeMXBean().uptime + .milliseconds.toDouble(DurationUnit.SECONDS) + "s" + ) } fun generateCert() { diff --git a/src/main/resources/web/index.html b/src/main/resources/web/index.html index b8f2199..ef9dab0 100644 --- a/src/main/resources/web/index.html +++ b/src/main/resources/web/index.html @@ -78,6 +78,8 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
@@ -91,7 +93,7 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.Listening to frontend logins from:
Copyright © 2020-2022 creeper123123321
-Copyright © 2021-2022 contributors +
Copyright © 2021-2022 contributors