Frameworks/AIUtilities Framework/Source/AISystemNetworkDefaults.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 4071 da5bbdab941f
equal deleted inserted replaced
5996:1894c44cfd13 5997:d88e6711d0e0
   138 						NSArray *proxies;
   138 						NSArray *proxies;
   139 						// The following note is from Apple's CFProxySupportTool:
   139 						// The following note is from Apple's CFProxySupportTool:
   140 						// Work around <rdar://problem/5530166>.  This dummy call to 
   140 						// Work around <rdar://problem/5530166>.  This dummy call to 
   141 						// CFNetworkCopyProxiesForURL initialise some state within CFNetwork 
   141 						// CFNetworkCopyProxiesForURL initialise some state within CFNetwork 
   142 						// that is required by CFNetworkCopyProxiesForAutoConfigurationScript.
   142 						// that is required by CFNetworkCopyProxiesForAutoConfigurationScript.
   143 						CFRelease(CFNetworkCopyProxiesForURL(url, NULL));
   143                         CFRelease(CFNetworkCopyProxiesForURL(url, (CFDictionaryRef)@{}));
   144 						
   144 
   145 						CFErrorRef error = NULL;
   145 						CFErrorRef error = NULL;
   146 						proxies = [(NSArray *)CFNetworkCopyProxiesForAutoConfigurationScript((CFStringRef)scriptStr, url, &error) autorelease];	
   146 						proxies = [(NSArray *)CFNetworkCopyProxiesForAutoConfigurationScript((CFStringRef)scriptStr, url, &error) autorelease];	
   147 
   147 
   148 						if (error) {
   148 						if (error) {
   149 							CFStringRef description = CFErrorCopyDescription(error);
   149 							CFStringRef description = CFErrorCopyDescription(error);