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.

StreamSettingsObject.cs 903 B

1234567891011121314151617181920212223242526272829
  1. namespace Shadowsocks.Interop.V2Ray.Transport
  2. {
  3. public class StreamSettingsObject : TransportObject
  4. {
  5. /// <summary>
  6. /// Gets or sets the transport protocol type.
  7. /// Defaults to "tcp".
  8. /// Available values: "tcp" | "kcp" | "ws" | "http" | "domainsocket" | "quic"
  9. /// </summary>
  10. public string? Network { get; set; }
  11. /// <summary>
  12. /// Gets or sets the transport encryption type.
  13. /// Defaults to "none" (no encryption).
  14. /// Available values: "none" | "tls"
  15. /// </summary>
  16. public string? Security { get; set; }
  17. public TlsObject? TlsSettings { get; set; }
  18. public SockoptObject? Sockopt { get; set; }
  19. public static StreamSettingsObject DefaultWsTls => new()
  20. {
  21. Network = "ws",
  22. Security = "tls",
  23. TlsSettings = new(),
  24. };
  25. }
  26. }