From 8538b548ddb627eae6511d10cc8524bc71920e40 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 24 Aug 2024 11:03:02 +0000 Subject: regress: hide REMOTE_{ADDR,HOST} too --- regress/fcgi-test.c | 4 +++- regress/lib.sh | 9 ++------- 2 files changed, 5 insertions(+), 8 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, "", sizeof(param->value)); consume(sock, hdr->padding); diff --git a/regress/lib.sh b/regress/lib.sh index 9abfa1e..46268ea 100644 --- a/regress/lib.sh +++ b/regress/lib.sh @@ -10,11 +10,6 @@ server_name= gghost= fcgi_content() { - remote_host=::1 - if [ "$HAVE_IPV6" != yes ]; then - remote_host=127.0.0.1 - fi - cat < +* REMOTE_HOST= * REQUEST_METHOD=GET * SCRIPT_NAME= * SERVER_NAME= -- cgit v1.2.3