diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-03-01 17:08:52 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-07-22 19:49:51 +0100 |
commit | e9ec0362a80e601a96bfbd170c4cf59d4867bdc8 (patch) | |
tree | f651c43af1c6815c54afef3c2214ec464c01cf52 /server | |
parent | efed3566ebaf6450754ee6514cc466c139b68366 (diff) | |
download | spacebeans-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.scala | 2 |
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) |