summaryrefslogtreecommitdiffstats
path: root/x11vnc/util.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-31 15:41:42 +0000
committerrunge <runge>2007-01-31 15:41:42 +0000
commit1b9082bc8739e5ab186092ca1dcff1736eb91c0e (patch)
tree9d2a267bcbba93aed87634838c9ac10f36363210 /x11vnc/util.c
parent1f8da9bde3b7de272228872410143f076662ae13 (diff)
downloadlibtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.tar.gz
libtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.zip
x11vnc: -reflect, -N. -ncache, FINDDISPLAY, FINDCREATEDISPLAY, improvements. MODTWEAK_LOWEST workaround.
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r--x11vnc/util.c2
1 files changed, 2 insertions, 0 deletions
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;