r8305 seems to have made Unix PuTTY rather over-keen on Unix-domain sockets;
[u/mdw/putty] / x11fwd.c
index 50300ad..1fd4e19 100644 (file)
--- 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");