diff options
author | runge <runge@karlrunge.com> | 2010-04-18 19:37:37 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-04-18 19:37:37 -0400 |
commit | b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (patch) | |
tree | c8c8aaec90fd51a10790795030777b2dda548fe7 /x11vnc/sslhelper.c | |
parent | 2a8ba97ec5b0f7fbfcfc8adab6732a95e95c7204 (diff) | |
download | libtdevnc-b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1.tar.gz libtdevnc-b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1.zip |
Improvements to demo scripts. Alias -coe for -connect_or_exit. Fix HAVE_V4L2. Warn no Xvfb, Xdummy, or Xvnc. Xinerama screens.
Diffstat (limited to 'x11vnc/sslhelper.c')
-rw-r--r-- | x11vnc/sslhelper.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/x11vnc/sslhelper.c b/x11vnc/sslhelper.c index ae33520..3fc97b4 100644 --- a/x11vnc/sslhelper.c +++ b/x11vnc/sslhelper.c @@ -2749,7 +2749,7 @@ void openssl_port(int restart) { if (port < 0) { rfbLog("openssl_port: could not obtain listening port %d\n", port); - if (!got_rfbport && !ipv6_listen) { + if (!got_rfbport && !got_ipv6_listen) { rfbLog("openssl_port: if this system is IPv6-only, use the -6 option\n"); } clean_up_exit(1); @@ -2760,8 +2760,10 @@ void openssl_port(int restart) { sock = listen_tcp(port, iface, 0); if (ipv6_listen) { fd6 = listen6(port); - } else if (!got_rfbport) { - rfbLog("openssl_port: if this system is IPv6-only, use the -6 option\n"); + } else if (!got_rfbport && !got_ipv6_listen) { + if (sock < 0) { + rfbLog("openssl_port: if this system is IPv6-only, use the -6 option\n"); + } } if (sock < 0) { if (fd6 < 0) { @@ -2770,7 +2772,7 @@ void openssl_port(int restart) { clean_up_exit(1); } } else { - rfbLog("openssl_port: Info: only listening on IPv6\n"); + rfbLog("openssl_port: Info: listening on IPv6 only.\n"); } } } |