-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi there, recently I've updated your asset to the latest version (2.8.1) to use the proxy autodetect experimental feature.
I've noticed a little bug with the FrameworkProxyDetector class. In this one in the GetProxy function you are checking the Scheme of the proxy by looking with StartsWith("http://") (or socks://) however this is always failing because the actual proxy scheme has no authority in it, it always returns either 'http' or 'https' or 'socks' so it will always fail to set it.
Another nice to have thing would be to also add Exceptions after setting the proxy, somthing like
HTTPManager.Proxy.Exceptions = new List<string>();
if (systemProxy.BypassProxyOnLocal)//systemProxy is found with WebRequest.GetSystemWebProxy()
{
HTTPManager.Proxy.Exceptions.Add("localhost");
}
if (systemProxy.BypassList != null)
{
HTTPManager.Proxy.Exceptions.AddRange(systemProxy.BypassList);
}
Thank you very much for your work!
Metadata
Metadata
Assignees
Labels
No labels