mirror of https://github.com/nealey/eris.git
Also work with stunnel
This commit is contained in:
parent
ecad076ec6
commit
b3c4786482
6
eris.c
6
eris.c
|
@ -212,6 +212,12 @@ get_ucspi_env()
|
||||||
char *ip = proto_getenv(ucspi, "REMOTEIP");
|
char *ip = proto_getenv(ucspi, "REMOTEIP");
|
||||||
char *port = proto_getenv(ucspi, "REMOTEPORT");
|
char *port = proto_getenv(ucspi, "REMOTEPORT");
|
||||||
|
|
||||||
|
if (! ip) {
|
||||||
|
// stunnel
|
||||||
|
ip = getenv("REMOTE_HOST");
|
||||||
|
port = getenv("REMOTE_PORT");
|
||||||
|
}
|
||||||
|
|
||||||
if (ip) {
|
if (ip) {
|
||||||
char buf[80];
|
char buf[80];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue