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.

Config.cs 1.1 kB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace Shadowsocks.Interop.V2Ray
  4. {
  5. public class Config
  6. {
  7. public LogObject? Log { get; set; }
  8. public ApiObject? Api { get; set; }
  9. public DnsObject? Dns { get; set; }
  10. public RoutingObject? Routing { get; set; }
  11. public PolicyObject? Policy { get; set; }
  12. public List<InboundObject>? Inbounds { get; set; }
  13. public List<OutboundObject>? Outbounds { get; set; }
  14. public TransportObject? Transport { get; set; }
  15. public StatsObject? Stats { get; set; }
  16. public ReverseObject? Reverse { get; set; }
  17. /// <summary>
  18. /// Gets the default configuration.
  19. /// </summary>
  20. public static Config Default => new()
  21. {
  22. Log = new(),
  23. Api = ApiObject.Default,
  24. Dns = new(),
  25. Routing = new(),
  26. Policy = PolicyObject.Default,
  27. Inbounds = new(),
  28. Outbounds = new(),
  29. Stats = new(),
  30. };
  31. }
  32. }