diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-08-15 01:00:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-15 01:00:33 -0700 |
| commit | 685e9e4f58c2e00a0157098a2309b2cb97cb2f14 (patch) | |
| tree | f931aa410d09e57a7903b709d56c012e4da9b92e /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 535e0d25538a7f19d927d96e3fd4fba553ed83f4 (diff) | |
| parent | 72436892154892c53c75ee5fdcbcb3bf843ac85c (diff) | |
Merge pull request #1584 from Bond-009/checksum
Check checksum for plugin downloads
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 966abfc41..e5e095ca1 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1537,8 +1537,6 @@ namespace Emby.Server.Implementations { Url = Url, LogErrorResponseBody = false, - LogErrors = false, - LogRequest = false, BufferContent = false, CancellationToken = cancellationToken }).ConfigureAwait(false)) @@ -1690,8 +1688,8 @@ namespace Emby.Server.Implementations private async Task<bool> IsIpAddressValidAsync(IPAddress address, CancellationToken cancellationToken) { - if (address.Equals(IPAddress.Loopback) || - address.Equals(IPAddress.IPv6Loopback)) + if (address.Equals(IPAddress.Loopback) + || address.Equals(IPAddress.IPv6Loopback)) { return true; } @@ -1704,12 +1702,6 @@ namespace Emby.Server.Implementations return cachedResult; } -#if DEBUG - const bool LogPing = true; -#else - const bool LogPing = false; -#endif - try { using (var response = await HttpClient.SendAsync( @@ -1717,8 +1709,6 @@ namespace Emby.Server.Implementations { Url = apiUrl, LogErrorResponseBody = false, - LogErrors = LogPing, - LogRequest = LogPing, BufferContent = false, CancellationToken = cancellationToken }, HttpMethod.Post).ConfigureAwait(false)) |
