summaryrefslogtreecommitdiffstats
path: root/x11vnc/options.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/options.c
parent2a8ba97ec5b0f7fbfcfc8adab6732a95e95c7204 (diff)
downloadlibtdevnc-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/options.c')
-rw-r--r--x11vnc/options.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/x11vnc/options.c b/x11vnc/options.c
index 05f7538..0ad72f9 100644
--- a/x11vnc/options.c
+++ b/x11vnc/options.c
@@ -134,10 +134,12 @@ int no_external_cmds = 1; /* cannot be turned back on. */
char *allowed_external_cmds = NULL;
int started_as_root = 0;
int host_lookup = 1;
-#ifndef X11VNC_LISTEN6
-int ipv6_listen = 0; /* -6 */
+#if X11VNC_LISTEN6
+int ipv6_listen = 1; /* -6 / -no6 */
+int got_ipv6_listen = 1;
#else
-int ipv6_listen = 1;
+int ipv6_listen = 0; /* -6 / -no6 */
+int got_ipv6_listen = 0;
#endif
int ipv6_listen_fd = -1;
int ipv6_http_fd = -1;