aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-26 23:49:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-26 23:49:56 -0400
commitca2e7a4195e290c5327f5edbe5688ca7c8a661a8 (patch)
treea329a7b51da6ddeb4c3215cd256f592562efd558 /Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
parent88caeaa783d8d6a7d2d17c98955fa4bc8264d446 (diff)
deprecate localized guids config switch
Diffstat (limited to 'Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs17
1 files changed, 0 insertions, 17 deletions
diff --git a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
index ef95b47c3..cd7c98dc8 100644
--- a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
@@ -124,18 +124,6 @@ namespace Emby.Server.Implementations.HttpClientManager
}
}
- private void AddIpv4Option(HttpWebRequest request, HttpRequestOptions options)
- {
- request.ServicePoint.BindIPEndPointDelegate = (servicePount, remoteEndPoint, retryCount) =>
- {
- if (remoteEndPoint.AddressFamily == AddressFamily.InterNetwork)
- {
- return new IPEndPoint(IPAddress.Any, 0);
- }
- throw new InvalidOperationException("no IPv4 address");
- };
- }
-
private WebRequest GetRequest(HttpRequestOptions options, string method)
{
var url = options.Url;
@@ -153,11 +141,6 @@ namespace Emby.Server.Implementations.HttpClientManager
if (httpWebRequest != null)
{
- if (options.PreferIpv4)
- {
- AddIpv4Option(httpWebRequest, options);
- }
-
AddRequestHeaders(httpWebRequest, options);
if (options.EnableHttpCompression)