diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-09-11 13:28:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 13:28:49 +0000 |
| commit | 6aa6e33f7d6dad75a03ad14557e517fa3647a9b3 (patch) | |
| tree | 51ee8049a7ee3e1b24c6dc513b326abf7b58508f | |
| parent | b198c6f4d16f3c9bf8b9f85cd3d020d6bdc39576 (diff) | |
| parent | 3ad176f8e2a9c03c1fa54911f4b3b27561646c4b (diff) | |
Merge pull request #4102 from cvium/fix_startup_lan_ip_validation
Skip startup message for /system/ping
| -rw-r--r-- | Jellyfin.Server/Middleware/ServerStartupMessageMiddleware.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server/Middleware/ServerStartupMessageMiddleware.cs b/Jellyfin.Server/Middleware/ServerStartupMessageMiddleware.cs index ea81c03a2..2ec063392 100644 --- a/Jellyfin.Server/Middleware/ServerStartupMessageMiddleware.cs +++ b/Jellyfin.Server/Middleware/ServerStartupMessageMiddleware.cs @@ -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; |
