summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-11-17 22:41:16 +0000
committerLaurent Bercot <ska@appnovation.com>2023-11-17 22:41:16 +0000
commitbdcd701136294f1d3a5e93047edb8bd40b54a27a (patch)
tree84c5a100390c9a22140f44a7108d1918536435bb /src/config
parent7ec647fa64c0a6f29cbb83cc264868b15e4bb046 (diff)
downloadtipidee-bdcd701136294f1d3a5e93047edb8bd40b54a27a.tar.xz
Add X-Forwarded-For logging support
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/lexparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/lexparse.c b/src/config/lexparse.c
index 799b17f..99eeaa0 100644
--- a/src/config/lexparse.c
+++ b/src/config/lexparse.c
@@ -150,7 +150,8 @@ static inline void parse_log (char const *s, size_t const *word, size_t n, mdt c
{ .name = "request", .value = TIPIDEE_LOG_REQUEST },
{ .name = "resource", .value = TIPIDEE_LOG_RESOURCE },
{ .name = "start", .value = TIPIDEE_LOG_START },
- { .name = "user-agent", .value = TIPIDEE_LOG_UA }
+ { .name = "user-agent", .value = TIPIDEE_LOG_UA },
+ { .name = "x-forwarded-for", .value = TIPIDEE_LOG_XFORWARDEDFOR }
} ;
uint32_t v = 0 ;
char pack[4] ;