How to make System.Net.WebProxy to not bypass local urls?
问题 I am trying to make Fiddler work with RestSharp witch uses System.Http.WebProxy , so I want it to be set to localhost:8888 or 127.0.0.1:8888 Here is the code: var webProxy = new WebProxy(new Uri("http://127.0.0.1:8888")) { BypassProxyOnLocal = false }; var bypassed = webProxy.IsBypassed(new Uri("http://127.0.0.1")); Console.WriteLine(bypassed); Outputs: true MSDN states the following: The IsBypassed method is used to determine whether to bypass the proxy server when accessing an Internet