mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-27 17:01:16 -04:00
29 lines
782 B
C#
29 lines
782 B
C#
using System;
|
|
|
|
namespace MediaBrowser.Common.Net;
|
|
|
|
/// <summary>
|
|
/// Result of <see cref="INetworkManager.ShouldAllowServerAccess" />.
|
|
/// </summary>
|
|
public enum RemoteAccessPolicyResult
|
|
{
|
|
/// <summary>
|
|
/// The connection should be allowed.
|
|
/// </summary>
|
|
Allow,
|
|
|
|
/// <summary>
|
|
/// The connection should be rejected since it is not from a local IP and remote access is disabled.
|
|
/// </summary>
|
|
RejectDueToRemoteAccessDisabled,
|
|
|
|
/// <summary>
|
|
/// The connection should be rejected since it is from a blocklisted IP.
|
|
/// </summary>
|
|
RejectDueToIPBlocklist,
|
|
|
|
/// <summary>
|
|
/// The connection should be rejected since it is from a remote IP that is not in the allowlist.
|
|
/// </summary>
|
|
RejectDueToNotAllowlistedRemoteIP,
|
|
}
|