Proxy BypassList tests

Lightly refactored and updated documentation to make it easier for users
This commit is contained in:
Lloyd Sparkes
2016-05-02 11:24:51 +01:00
parent c82b90aca8
commit 2b11ad4585
6 changed files with 55 additions and 6 deletions
@@ -41,7 +41,7 @@ namespace NzbDrone.Core.Http
public bool ShouldProxyBeBypassed(HttpProxySettings proxySettings, HttpUri url)
{
//We are utilising the WebProxy implementation here to save us having to reimplement it. This way we use Microsofts implementation
var proxy = new WebProxy(proxySettings.Host + ":" + proxySettings.Port, proxySettings.BypassLocalAddress, proxySettings.SubnetFilterAsArray);
var proxy = new WebProxy(proxySettings.Host + ":" + proxySettings.Port, proxySettings.BypassLocalAddress, proxySettings.BypassListAsArray);
return proxy.IsBypassed((Uri)url);
}