From 9c7c6c763d5706d580104d83f5f529ed9c38b167 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Tue, 3 Jan 2023 09:47:57 -0800 Subject: [PATCH] Fix remoteaddr from previous commit --- internal/http/robots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/robots.go b/internal/http/robots.go index cbb72d4..08039c4 100644 --- a/internal/http/robots.go +++ b/internal/http/robots.go @@ -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")