Skip to content

Framework Proxy Autodetection #141

@davide-aldegheri

Description

@davide-aldegheri

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions