mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
r8305 seems to have made Unix PuTTY rather over-keen on Unix-domain sockets;
unless a protocol is explicitly specified with "tcp/foovax:0", it assume a
Unix-domain socket, thus not allowing a remote display on a machine other than
the client.
[originally from svn r8381]
[r8305 == ca6fc3a4da
]
This commit is contained in:
parent
81287fb7ad
commit
db6ad48673
4
x11fwd.c
4
x11fwd.c
@ -125,8 +125,10 @@ struct X11Display *x11_setup_display(char *display, int authtype,
|
|||||||
if (protocol)
|
if (protocol)
|
||||||
disp->unixdomain = (!strcmp(protocol, "local") ||
|
disp->unixdomain = (!strcmp(protocol, "local") ||
|
||||||
!strcmp(protocol, "unix"));
|
!strcmp(protocol, "unix"));
|
||||||
else
|
else if (!*hostname || !strcmp(hostname, "unix"))
|
||||||
disp->unixdomain = platform_uses_x11_unix_by_default;
|
disp->unixdomain = platform_uses_x11_unix_by_default;
|
||||||
|
else
|
||||||
|
disp->unixdomain = FALSE;
|
||||||
|
|
||||||
if (!disp->hostname && !disp->unixdomain)
|
if (!disp->hostname && !disp->unixdomain)
|
||||||
disp->hostname = dupstr("localhost");
|
disp->hostname = dupstr("localhost");
|
||||||
|
Loading…
Reference in New Issue
Block a user