]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Change proxy-dns `Auto' default for SOCKS5 from local DNS to remote DNS.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 22 Apr 2005 00:00:49 +0000 (00:00 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 22 Apr 2005 00:00:49 +0000 (00:00 +0000)
SOCKS5 should always be able to do this, and I suspect our not doing so
dates from when the SOCKS proxy types were under a single configuration
option (pre-r3168).

[originally from svn r5654]

doc/config.but
proxy.c

index 1ac177eff765a5f42c175e6a7e22b7f641048130..d077c4a09186053598034aac30fb4fa83f0af75c 100644 (file)
@@ -1831,9 +1831,9 @@ set it to \q{Yes}, PuTTY will always pass host names straight to the
 proxy without trying to look them up first.
 
 If you set this option to \q{Auto} (the default), PuTTY will do
-something it considers appropriate for each type of proxy. Telnet
-and HTTP proxies will have host names passed straight to them; SOCKS
-proxies will not.
+something it considers appropriate for each type of proxy. Telnet,
+HTTP, and SOCKS5 proxies will have host names passed straight to
+them; SOCKS4 proxies will not.
 
 Note that if you are doing DNS at the proxy, you should make sure
 that your proxy exclusion settings (see \k{config-proxy-exclude}) do
diff --git a/proxy.c b/proxy.c
index a27c38ee5775f0e41ed0e79429105ca07392f014..ad3b8146ce843152ee14a9313d9d2cbbbedfff38 100644 (file)
--- a/proxy.c
+++ b/proxy.c
@@ -16,9 +16,7 @@
 
 #define do_proxy_dns(cfg) \
     (cfg->proxy_dns == FORCE_ON || \
-        (cfg->proxy_dns == AUTO && \
-              cfg->proxy_type != PROXY_SOCKS4 && \
-              cfg->proxy_type != PROXY_SOCKS5))
+        (cfg->proxy_dns == AUTO && cfg->proxy_type != PROXY_SOCKS4))
 
 /*
  * Call this when proxy negotiation is complete, so that this