From 4e5ecefa684231c2ec12f8ad792aa1c41f19f2f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 3 Dec 2012 13:58:43 -0500 Subject: [PATCH] Don't return a shared CFProxy instance --- mcs/class/System/System.Net/MacProxy.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 (); } } } -- 2.25.1