[MonoTODO("Look in other places for proxy config info")]
public static IWebProxy GetSystemWebProxy ()
{
+#if !NET_2_1
if (IsWindows ()) {
int iProxyEnable = (int)Microsoft.Win32.Registry.GetValue ("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", "ProxyEnable", 0);
return new WebProxy (strHttpProxy, bBypassOnLocal, al.ToArray (typeof(string)) as string[]);
}
} else {
+#endif
string address = Environment.GetEnvironmentVariable ("http_proxy");
if (address == null)
} catch (UriFormatException) {
}
}
+#if !NET_2_1
}
+#endif
if (cfGetDefaultProxy != null)
return (IWebProxy) cfGetDefaultProxy.Invoke (null, null);