summaryrefslogtreecommitdiffstats
path: root/x11vnc/sslhelper.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-04-18 19:37:37 -0400
committerrunge <runge@karlrunge.com>2010-04-18 19:37:37 -0400
commitb74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (patch)
treec8c8aaec90fd51a10790795030777b2dda548fe7 /x11vnc/sslhelper.c
parent2a8ba97ec5b0f7fbfcfc8adab6732a95e95c7204 (diff)
downloadlibtdevnc-b74c8f42.tar.gz
libtdevnc-b74c8f42.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.c10
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");
}
}
}