diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-06-30 15:04:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-30 15:04:23 -0400 |
| commit | 5fb3149422be5e0eebc32472efc8e7f6a86c5100 (patch) | |
| tree | c3360f59367c98750765e037cd6f038099f9457b /MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs | |
| parent | a8b377d745af71a57b040ff1cc4bd91f4fffce77 (diff) | |
| parent | 1dfe694a770586ab37ddd57c9f59d6e87d34c463 (diff) | |
Merge pull request #1895 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs index ce1e9fd7f..5c70179a8 100644 --- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -128,11 +128,6 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager private void AddIpv4Option(HttpWebRequest request, HttpRequestOptions options) { - if (!options.PreferIpv4) - { - return; - } - request.ServicePoint.BindIPEndPointDelegate = (servicePount, remoteEndPoint, retryCount) => { if (remoteEndPoint.AddressFamily == AddressFamily.InterNetwork) @@ -150,7 +145,10 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager if (httpWebRequest != null) { - AddIpv4Option(httpWebRequest, options); + if (options.PreferIpv4) + { + AddIpv4Option(httpWebRequest, options); + } AddRequestHeaders(httpWebRequest, options); |
