X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/aaaf3892980be914e36a0130691df15ae2ddaecf..46f258147c57d2320fa05ecf108db22854bef13f:/proxy.c diff --git a/proxy.c b/proxy.c index 051beb7e..3c81884d 100644 --- a/proxy.c +++ b/proxy.c @@ -286,6 +286,15 @@ static int proxy_for_destination (SockAddr addr, char *hostname, int port, const char *exclude_list; /* + * Special local connections such as Unix-domain sockets + * unconditionally cannot be proxied, even in proxy-localhost + * mode. There just isn't any way to ask any known proxy type for + * them. + */ + if (addr && sk_address_is_special_local(addr)) + return 0; /* do not proxy */ + + /* * Check the host name and IP against the hard-coded * representations of `localhost'. */