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.

RuleObject.cs 1.1 kB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace Shadowsocks.Interop.V2Ray.Routing
  4. {
  5. public class RuleObject
  6. {
  7. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  8. public string Type { get; set; }
  9. public List<string>? Domain { get; set; }
  10. public List<string>? Ip { get; set; }
  11. public object? Port { get; set; }
  12. public object? SourcePort { get; set; }
  13. public string? Network { get; set; }
  14. public List<string>? Source { get; set; }
  15. public List<string>? User { get; set; }
  16. public List<string>? InboundTag { get; set; }
  17. public List<string>? Protocol { get; set; }
  18. public string? Attrs { get; set; }
  19. public string? OutboundTag { get; set; }
  20. public string? BalancerTag { get; set; }
  21. public RuleObject()
  22. {
  23. Type = "field";
  24. }
  25. public static RuleObject DefaultOutbound => new()
  26. {
  27. OutboundTag = "",
  28. };
  29. public static RuleObject DefaultBalancer => new()
  30. {
  31. BalancerTag = "",
  32. };
  33. }
  34. }