From: Jeffrey Stedfast Date: Mon, 3 Dec 2012 18:58:43 +0000 (-0500) Subject: Don't return a shared CFProxy instance X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=4e5ecefa684231c2ec12f8ad792aa1c41f19f2f6;p=mono.git Don't return a shared CFProxy instance --- diff --git a/mcs/class/System/System.Net/MacProxy.cs b/mcs/class/System/System.Net/MacProxy.cs index eb279fc2c74..a21cf97c658 100644 --- a/mcs/class/System/System.Net/MacProxy.cs +++ b/mcs/class/System/System.Net/MacProxy.cs @@ -811,7 +811,7 @@ namespace System.Net public Uri GetProxy (Uri targetUri) { - NetworkCredentials credentials = null; + NetworkCredential credentials = null; Uri proxy = null; if (targetUri == null) @@ -873,13 +873,9 @@ namespace System.Net } } - static CFWebProxy defaultWebProxy; public static IWebProxy GetDefaultProxy () { - if (defaultWebProxy == null) - defaultWebProxy = new CFWebProxy (); - - return defaultWebProxy; + return new CFWebProxy (); } } }