diff options
author | runge <runge> | 2007-04-07 00:48:03 +0000 |
---|---|---|
committer | runge <runge> | 2007-04-07 00:48:03 +0000 |
commit | af44bff5364d01a5b310204256a3533da3f51c31 (patch) | |
tree | 3fda9a0dca24faf579520b04f70861eddd85c8f8 /x11vnc/connections.c | |
parent | 26b291bf25aca6d0cca3fbddc803f7ba8e1aead8 (diff) | |
download | libvncserver-af44bff5364d01a5b310204256a3533da3f51c31.zip libvncserver-af44bff5364d01a5b310204256a3533da3f51c31.tar.gz |
java ingoreProxy, fix old libssl free_func problem
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r-- | x11vnc/connections.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c index 69e84ba..671221a 100644 --- a/x11vnc/connections.c +++ b/x11vnc/connections.c @@ -1653,6 +1653,14 @@ static int do_reverse_connect(char *str) { openssl_init(0); return 1; } + if (use_stunnel) { + if(strcmp(host, "localhost") && strcmp(host, "127.0.0.1")) { + if (!getenv("STUNNEL_DISABLE_LOCALHOST")) { + rfbLog("reverse_connect: error host not localhost in -stunnel mode.\n"); + return 0; + } + } + } if (unixpw) { int is_localhost = 0, user_disabled = 0; @@ -1674,23 +1682,6 @@ static int do_reverse_connect(char *str) { } } -#if 0 - if (inetd && unixpw) { - if(strcmp(host, "localhost") && strcmp(host, "127.0.0.1")) { - if (! getenv("UNIXPW_DISABLE_LOCALHOST")) { - rfbLog("reverse_connect: in -inetd only localhost\n"); - rfbLog("connections allowed under -unixpw\n"); - return 0; - } - } - if (! getenv("UNIXPW_DISABLE_SSL") && ! have_ssh_env()) { - rfbLog("reverse_connect: in -inetd stunnel/ssh\n"); - rfbLog("required under -unixpw\n"); - return 0; - } - } -#endif - cl = rfbReverseConnection(screen, host, rport); free(host); |