RemoteAccessPolicyResult.cs 782 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace MediaBrowser.Common.Net;
  3. /// <summary>
  4. /// Result of <see cref="INetworkManager.ShouldAllowServerAccess" />.
  5. /// </summary>
  6. public enum RemoteAccessPolicyResult
  7. {
  8. /// <summary>
  9. /// The connection should be allowed.
  10. /// </summary>
  11. Allow,
  12. /// <summary>
  13. /// The connection should be rejected since it is not from a local IP and remote access is disabled.
  14. /// </summary>
  15. RejectDueToRemoteAccessDisabled,
  16. /// <summary>
  17. /// The connection should be rejected since it is from a blocklisted IP.
  18. /// </summary>
  19. RejectDueToIPBlocklist,
  20. /// <summary>
  21. /// The connection should be rejected since it is from a remote IP that is not in the allowlist.
  22. /// </summary>
  23. RejectDueToNotAllowlistedRemoteIP,
  24. }