Skip to content

Commit 29197c2

Browse files
committed
Add client ip logging on proxy
1 parent c1acbbf commit 29197c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redirectionio_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ apr_status_t redirectionio_protocol_log(redirectionio_connection *conn, redirect
149149
response = response->next;
150150
}
151151

152-
log = redirectionio_api_create_log_in_json(ctx->request, response->status, ctx->response_headers, ctx->action, PROXY_VERSION_STR(PROXY_VERSION), response->request_time);
152+
log = redirectionio_api_create_log_in_json(ctx->request, response->status, ctx->response_headers, ctx->action, PROXY_VERSION_STR(PROXY_VERSION), response->request_time, r->connection->client_ip);
153153

154154
if (log == NULL) {
155155
return APR_EGENERAL;

0 commit comments

Comments
 (0)