You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

RoutingObject.cs 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Shadowsocks.Interop.V2Ray.Routing;
  2. using System.Collections.Generic;
  3. namespace Shadowsocks.Interop.V2Ray
  4. {
  5. public class RoutingObject
  6. {
  7. /// <summary>
  8. /// Gets or sets the domain strategy used for routing.
  9. /// Default value: AsIs.
  10. /// Available values: "AsIs" | "IPIfNonMatch" | "IPOnDemand"
  11. /// </summary>
  12. public string DomainStrategy { get; set; }
  13. /// <summary>
  14. /// Gets or sets the list of routing rules.
  15. /// </summary>
  16. public List<RuleObject> Rules { get; set; }
  17. /// <summary>
  18. /// Gets or sets the list of load balancers.
  19. /// </summary>
  20. public List<BalancerObject>? Balancers { get; set; }
  21. public RoutingObject()
  22. {
  23. DomainStrategy = "AsIs";
  24. Rules = new();
  25. }
  26. public static RoutingObject DefaultBalancers => new()
  27. {
  28. Balancers = new(),
  29. };
  30. }
  31. }