anytls.go 839 B

12345678910111213141516171819202122232425
  1. package option
  2. import "github.com/sagernet/sing/common/json/badoption"
  3. type AnyTLSInboundOptions struct {
  4. ListenOptions
  5. InboundTLSOptionsContainer
  6. Users []AnyTLSUser `json:"users,omitempty"`
  7. PaddingScheme badoption.Listable[string] `json:"padding_scheme,omitempty"`
  8. }
  9. type AnyTLSUser struct {
  10. Name string `json:"name,omitempty"`
  11. Password string `json:"password,omitempty"`
  12. }
  13. type AnyTLSOutboundOptions struct {
  14. DialerOptions
  15. ServerOptions
  16. OutboundTLSOptionsContainer
  17. Password string `json:"password,omitempty"`
  18. IdleSessionCheckInterval badoption.Duration `json:"idle_session_check_interval,omitempty"`
  19. IdleSessionTimeout badoption.Duration `json:"idle_session_timeout,omitempty"`
  20. MinIdleSession int `json:"min_idle_session,omitempty"`
  21. }