mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Respond with Service Unavailable if not in correct network
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user