Fix remoteaddr from previous commit

This commit is contained in:
kayos@tcp.direct 2023-01-03 09:47:57 -08:00
parent 4931c51a61
commit 9c7c6c763d
No known key found for this signature in database
GPG Key ID: 4B841471B4BEE979
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import (
func robotsTXT(ctx *fasthttp.RequestCtx) {
slog := log.With().
Str("USERAGENT", string(ctx.UserAgent())).
Str("REMOTE_ADDR", remoteAddr).
Str("REMOTE_ADDR", getRealRemote(ctx)).
Interface("URL", string(ctx.RequestURI())).Logger()
paths := &strings.Builder{}
paths.WriteString("User-agent: *\r\n")