summaryrefslogtreecommitdiffstats
path: root/x11vnc/connections.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/connections.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/connections.c')
-rw-r--r--x11vnc/connections.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c
index f465325..c664377 100644
--- a/x11vnc/connections.c
+++ b/x11vnc/connections.c
@@ -308,7 +308,7 @@ static rfbClientPtr *client_match(char *str) {
}
if (ipv6_ip(str)) {
;
- } else if (! dotted_ip(str)) {
+ } else if (! dotted_ip(str, 0)) {
char *orig = rstr;
rstr = host2ip(rstr);
free(orig);
@@ -385,7 +385,7 @@ void set_client_input(char *str) {
return;
}
- p = strchr(str, ':');
+ p = strrchr(str, ':');
if (! p) {
return;
}
@@ -1067,7 +1067,7 @@ int check_access(char *addr) {
}
if (ipv6_ip(p)) {
chk = p;
- } else if (! dotted_ip(p)) {
+ } else if (! dotted_ip(p, 1)) {
r = host2ip(p);
if (r == NULL || *r == '\0') {
rfbLog("check_access: bad lookup \"%s\"\n", p);
@@ -1837,9 +1837,8 @@ void check_ipv6_listen(long usec) {
screen->httpListenSock = save;
}
}
-#else
- if (usec) {}
#endif
+ if (usec) {}
}
/*