aboutsummaryrefslogtreecommitdiff
path: root/regress/fcgi-test.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-08-24 11:03:02 +0000
committerOmar Polo <op@omarpolo.com>2024-08-24 11:03:02 +0000
commit8538b548ddb627eae6511d10cc8524bc71920e40 (patch)
tree8a13c27288cdaa796aa2d2bc49f219fd2809e90a /regress/fcgi-test.c
parentb8bce50d98502b9790be3f2a0591f8baf5c0c6de (diff)
regress: hide REMOTE_{ADDR,HOST} too
Diffstat (limited to 'regress/fcgi-test.c')
-rw-r--r--regress/fcgi-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/fcgi-test.c b/regress/fcgi-test.c
index ed6ec4e..94a4358 100644
--- a/regress/fcgi-test.c
+++ b/regress/fcgi-test.c
@@ -202,7 +202,9 @@ parse_params(int sock, struct param *param, struct fcgi_header *hdr)
must_read(sock, param->name, nlen);
must_read(sock, param->value, vlen);
- if (!strcmp(param->name, "SERVER_NAME"))
+ if (!strcmp(param->name, "SERVER_NAME") ||
+ !strcmp(param->name, "REMOTE_ADDR") ||
+ !strcmp(param->name, "REMOTE_HOST"))
strlcpy(param->value, "<redacted>", sizeof(param->value));
consume(sock, hdr->padding);