Remove all `enum'-typed variables from the Config structure.
[u/mdw/putty] / proxy.c
diff --git a/proxy.c b/proxy.c
index be238c3..0a61741 100644 (file)
--- a/proxy.c
+++ b/proxy.c
@@ -15,8 +15,8 @@
 #include "proxy.h"
 
 #define do_proxy_dns(cfg) \
-    (cfg->proxy_dns == 2 || \
-        (cfg->proxy_dns == 1 && cfg->proxy_type != PROXY_SOCKS))
+    (cfg->proxy_dns == FORCE_ON || \
+        (cfg->proxy_dns == AUTO && cfg->proxy_type != PROXY_SOCKS))
 
 /*
  * Call this when proxy negotiation is complete, so that this