From 1b9082bc8739e5ab186092ca1dcff1736eb91c0e Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 31 Jan 2007 15:41:42 +0000 Subject: x11vnc: -reflect, -N. -ncache, FINDDISPLAY, FINDCREATEDISPLAY, improvements. MODTWEAK_LOWEST workaround. --- x11vnc/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'x11vnc/util.c') diff --git a/x11vnc/util.c b/x11vnc/util.c index 5ba621c..632b617 100644 --- a/x11vnc/util.c +++ b/x11vnc/util.c @@ -287,6 +287,8 @@ char *this_host(void) { if (gethostname(host, MAXN) == 0) { host[MAXN-1] = '\0'; return strdup(host); + } else if (UT.nodename) { + return strdup(UT.nodename); } #endif return NULL; -- cgit v1.2.3