aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/RemoteAccessPolicyResult.cs
blob: 193d37228f232a081da5e7e3867528c2477a80be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
}