From e9ec0362a80e601a96bfbd170c4cf59d4867bdc8 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 1 Mar 2021 17:08:52 +0000 Subject: Use getHostString. This has the benefit of not attempting a reverse lookup. --- server/src/net/usebox/gemini/server/Server.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/net/usebox/gemini/server/Server.scala b/server/src/net/usebox/gemini/server/Server.scala index d6bcb8a..76c64c4 100644 --- a/server/src/net/usebox/gemini/server/Server.scala +++ b/server/src/net/usebox/gemini/server/Server.scala @@ -264,7 +264,7 @@ case class Server(conf: ServiceConf) { .wireTap(resp => logger.info( s"""${connection.remoteAddress - .getHostName()} "${resp.req}" ${resp.status} ${resp.bodySize}""" + .getHostString()} "${resp.req}" ${resp.status} ${resp.bodySize}""" ) ) .flatMapConcat(_.toSource) -- cgit v1.2.3