X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fcallfcgi.c;h=3320f5d714b0ec3ee15f79cdd965c5a38d19ec06;hp=99d21ca9cdb42c339ee4300e65626ecc8836bb4f;hb=1af656d2284a5f51631ae11ee9fa068af5c1ccc4;hpb=2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1 diff --git a/src/callfcgi.c b/src/callfcgi.c index 99d21ca..3320f5d 100644 --- a/src/callfcgi.c +++ b/src/callfcgi.c @@ -473,6 +473,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) free(url); if((h = getheader(req, "Host")) != NULL) bufaddenv(dst, "SERVER_NAME", "%s", h); + if((h = getheader(req, "X-Ash-Server-Address")) != NULL) + bufaddenv(dst, "SERVER_ADDR", "%s", h); if((h = getheader(req, "X-Ash-Server-Port")) != NULL) bufaddenv(dst, "SERVER_PORT", "%s", h); if((h = getheader(req, "X-Ash-Remote-User")) != NULL) @@ -481,6 +483,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) bufaddenv(dst, "HTTPS", "on"); if((h = getheader(req, "X-Ash-Address")) != NULL) bufaddenv(dst, "REMOTE_ADDR", "%s", h); + if((h = getheader(req, "X-Ash-Port")) != NULL) + bufaddenv(dst, "REMOTE_PORT", "%s", h); if((h = getheader(req, "Content-Type")) != NULL) bufaddenv(dst, "CONTENT_TYPE", "%s", h); if((h = getheader(req, "Content-Length")) != NULL)