From c36ba8d3a5b32ea1a1e6f469d7112fe6ff70978c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sun, 28 Sep 2025 17:59:09 +0200 Subject: [PATCH] logging: remove client host name --- src/worker/request_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/request_handler.c b/src/worker/request_handler.c index e210894..9355799 100644 --- a/src/worker/request_handler.c +++ b/src/worker/request_handler.c @@ -406,7 +406,7 @@ void request_complete(client_ctx_t *ctx) { const long len = ctx->content_length <= 0 ? ctx->transferred_length : ctx->content_length; fprintf(log, "%s %s %s [%s] \"%s %s HTTP/%s\" %i %li %s%s%s %s%s%s %s%s%s %s%s%s\n", - ctx->socket.addr, ctx->host[0] == 0 ? "-" : ctx->host, user[0] != 0 ? user : "-", buf, + ctx->socket.addr, "-", user[0] != 0 ? user : "-", buf, ctx->req.method, ctx->req.uri, ctx->req.version, ctx->res.status->code, len, loc != NULL ? "\"" : "", loc != NULL ? loc : "-", loc != NULL ? "\"" : "", type != NULL ? "\"" : "", type != NULL ? type : "-", type != NULL ? "\"" : "",