diff --git a/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs b/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs index ca3f7691a..9b8b2140a 100644 --- a/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs +++ b/src/NzbDrone.Core/IndexerProxies/FlareSolverr/FlareSolverr.cs @@ -149,7 +149,7 @@ namespace NzbDrone.Core.IndexerProxies.FlareSolverr { var failures = new List(); - var request = PreRequest(_cloudRequestBuilder.Create() + var request = GenerateFlareSolverrRequest(_cloudRequestBuilder.Create() .Resource("/ping") .Build()); @@ -157,12 +157,13 @@ namespace NzbDrone.Core.IndexerProxies.FlareSolverr { var response = _httpClient.Execute(request); - // We only care about 400 responses, other error codes can be ignored - if (response.StatusCode == HttpStatusCode.BadRequest) + if (response.StatusCode != HttpStatusCode.OK) { _logger.Error("Proxy Health Check failed: {0}", response.StatusCode); failures.Add(new NzbDroneValidationFailure("Host", string.Format(_localizationService.GetLocalizedString("ProxyCheckBadRequestMessage"), response.StatusCode))); } + + var result = JsonConvert.DeserializeObject(response.Content); } catch (Exception ex) { diff --git a/src/NzbDrone.Core/IndexerProxies/HttpIndexerProxyBase.cs b/src/NzbDrone.Core/IndexerProxies/HttpIndexerProxyBase.cs index 6ddc8b6bc..431ff53a9 100644 --- a/src/NzbDrone.Core/IndexerProxies/HttpIndexerProxyBase.cs +++ b/src/NzbDrone.Core/IndexerProxies/HttpIndexerProxyBase.cs @@ -31,12 +31,6 @@ namespace NzbDrone.Core.IndexerProxies { var failures = new List(); - var addresses = Dns.GetHostAddresses(Settings.Host); - if (!addresses.Any()) - { - failures.Add(new NzbDroneValidationFailure("Host", string.Format(_localizationService.GetLocalizedString("ProxyCheckResolveIpMessage"), addresses))); - } - var request = PreRequest(_cloudRequestBuilder.Create() .Resource("/ping") .Build()); @@ -55,7 +49,7 @@ namespace NzbDrone.Core.IndexerProxies catch (Exception ex) { _logger.Error(ex, "Proxy Health Check failed"); - failures.Add(new NzbDroneValidationFailure("Host", string.Format("Failed to test proxy: {0}", request.Url))); + failures.Add(new NzbDroneValidationFailure("Host", string.Format("Failed to test proxy: {0}", ex.Message))); } return new ValidationResult(failures);