diff options
Diffstat (limited to 'regress/fcgi-test.c')
-rw-r--r-- | regress/fcgi-test.c | 4 |
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); |