Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/adb0837dc219df6f9474d819c68a73f8c3decf48 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Respond with Service Unavailable if not in correct network

pull/10822/head
Cody Robibero 1 year ago
parent f49de51225
commit adb0837dc2

@ -41,6 +41,8 @@ public class IPBasedAccessValidationMiddleware
if (!networkManager.HasRemoteAccess(remoteIP))
{
// No access from network, respond with 503 instead of 200.
httpContext.Response.StatusCode = (int)HttpStatusCode.ServiceUnavailable;
return;
}

@ -1,3 +1,4 @@
using System.Net;
using System.Threading.Tasks;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.Net;
@ -40,6 +41,8 @@ public class LanFilteringMiddleware
var host = httpContext.GetNormalizedRemoteIP();
if (!networkManager.IsInLocalNetwork(host))
{
// No access from network, respond with 503 instead of 200.
httpContext.Response.StatusCode = (int)HttpStatusCode.ServiceUnavailable;
return;
}

Loading…
Cancel
Save