X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/cc0966fa089d9ab4572e518dda4d8504d4e0a4fa..566194cc74032ae861c6e3f77fdedf2cc5619573:/x11fwd.c diff --git a/x11fwd.c b/x11fwd.c index 50300ad1..1fd4e190 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -125,8 +125,10 @@ struct X11Display *x11_setup_display(char *display, int authtype, if (protocol) disp->unixdomain = (!strcmp(protocol, "local") || !strcmp(protocol, "unix")); - else + else if (!*hostname || !strcmp(hostname, "unix")) disp->unixdomain = platform_uses_x11_unix_by_default; + else + disp->unixdomain = FALSE; if (!disp->hostname && !disp->unixdomain) disp->hostname = dupstr("localhost");