aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-03-01 17:08:52 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-07-22 19:49:51 +0100
commite9ec0362a80e601a96bfbd170c4cf59d4867bdc8 (patch)
treef651c43af1c6815c54afef3c2214ec464c01cf52 /server
parentefed3566ebaf6450754ee6514cc466c139b68366 (diff)
downloadspacebeans-e9ec0362a80e601a96bfbd170c4cf59d4867bdc8.tar.gz
spacebeans-e9ec0362a80e601a96bfbd170c4cf59d4867bdc8.zip
Use getHostString.
This has the benefit of not attempting a reverse lookup.
Diffstat (limited to 'server')
-rw-r--r--server/src/net/usebox/gemini/server/Server.scala2
1 files changed, 1 insertions, 1 deletions
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)