If you configure Unix PuTTY to use a proxy, tell it to even proxy
[sgt/putty] / proxy.c
diff --git a/proxy.c b/proxy.c
index 051beb7..3c81884 100644 (file)
--- 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'.
      */