diff options
author | runge <runge> | 2008-10-29 23:41:28 +0000 |
---|---|---|
committer | runge <runge> | 2008-10-29 23:41:28 +0000 |
commit | 4dbc5d5a129ac009521da08bdc83eba5ea1eb51b (patch) | |
tree | c0f72b543f54996eb3ef10aab3f4207bfff33c07 /x11vnc/remote.c | |
parent | 8938cda1e7e09d946475fddaba46194baf7e6388 (diff) | |
download | libtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.tar.gz libtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.zip |
x11vnc: -http_oneport for single port HTTP and VNC. Improve find_display wrt lsof blocking with -b.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 2464189..3d0e031 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -333,13 +333,13 @@ int check_httpdir(void) { len = strlen(prog) + 21 + 1; *q = '\0'; httpdir = (char *) malloc(len); - if (use_openssl || use_stunnel || http_ssl) { + if (!enc_str && (use_openssl || use_stunnel || http_ssl)) { snprintf(httpdir, len, "%s/../share/x11vnc/classes/ssl", prog); } else { snprintf(httpdir, len, "%s/../share/x11vnc/classes", prog); } if (stat(httpdir, &sbuf) != 0) { - if (use_openssl || use_stunnel || http_ssl) { + if (!enc_str && (use_openssl || use_stunnel || http_ssl)) { snprintf(httpdir, len, "%s/../classes/ssl", prog); } else { snprintf(httpdir, len, "%s/../classes", prog); @@ -367,7 +367,7 @@ int check_httpdir(void) { "/usr/share/x11vnc/classes/ssl", NULL }; - if (use_openssl || use_stunnel || http_ssl) { + if (!enc_str && (use_openssl || use_stunnel || http_ssl)) { use = ssllist; } else { use = list; |