Merge pull request #4102 from cvium/fix_startup_lan_ip_validation

Skip startup message for /system/ping
This commit is contained in:
Bond-009 2020-09-11 13:28:49 +00:00 committed by GitHub
commit 6aa6e33f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
using System;
using System.Net.Mime;
using System.Threading.Tasks;
using MediaBrowser.Controller;
@ -34,7 +35,8 @@ namespace Jellyfin.Server.Middleware
IServerApplicationHost serverApplicationHost,
ILocalizationManager localizationManager)
{
if (serverApplicationHost.CoreStartupHasCompleted)
if (serverApplicationHost.CoreStartupHasCompleted
|| httpContext.Request.Path.Equals("/system/ping", StringComparison.OrdinalIgnoreCase))
{
await _next(httpContext).ConfigureAwait(false);
return;