Also work with stunnel

This commit is contained in:
Neale Pickett 2015-02-26 15:47:37 -07:00
parent ecad076ec6
commit b3c4786482
2 changed files with 10 additions and 0 deletions

6
eris.c
View File

@ -212,6 +212,12 @@ get_ucspi_env()
char *ip = proto_getenv(ucspi, "REMOTEIP");
char *port = proto_getenv(ucspi, "REMOTEPORT");
if (! ip) {
// stunnel
ip = getenv("REMOTE_HOST");
port = getenv("REMOTE_PORT");
}
if (ip) {
char buf[80];

View File

@ -4,6 +4,10 @@
: ${HTTPD_CGI:=./eris -c}
: ${HTTPD_IDX:=./eris -d}
tests=0
successes=0
failures=0
H () {
section="$*"
printf "\n%-20s " "$*"