Proxy from environment (resend)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog:
Take http proxy info from environment when not set in registry
Index: dlls/wininet/internet.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.c,v
retrieving revision 1.60
diff -u -b -w -r1.60 internet.c
--- dlls/wininet/internet.c	2 Jul 2003 04:37:26 -0000	1.60
+++ dlls/wininet/internet.c	10 Jul 2003 17:01:24 -0000
@@ -265,6 +265,18 @@
                     TRACE("Proxy is not enabled.\n");
                 }
                 RegCloseKey(key);
+            } else {
+	      char *http_proxy;
+	      http_proxy = getenv("http_proxy");
+	      /* check for a common environment variable */
+	      if (http_proxy) {
+		if ((lpwai->lpszProxy = HeapAlloc( GetProcessHeap(), 0, strlen(http_proxy)+1 ))) {
+		  TRACE("Pulled proxy (%s) from the environment\n", http_proxy);
+		  strcpy( lpwai->lpszProxy, http_proxy );
+		}
+	      } else {
+		WARN("No proxy information available\n");
+	      }
             }
         }
         else if (NULL != lpszProxy)

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux