diff options
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r-- | x11vnc/util.c | 2 |
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; |