naive.go 685 B

1234567891011121314151617181920212223
  1. package option
  2. import (
  3. "github.com/sagernet/sing/common/auth"
  4. "github.com/sagernet/sing/common/json/badoption"
  5. )
  6. type NaiveInboundOptions struct {
  7. ListenOptions
  8. Users []auth.User `json:"users,omitempty"`
  9. Network NetworkList `json:"network,omitempty"`
  10. InboundTLSOptionsContainer
  11. }
  12. type NaiveOutboundOptions struct {
  13. DialerOptions
  14. ServerOptions
  15. Username string `json:"username,omitempty"`
  16. Password string `json:"password,omitempty"`
  17. InsecureConcurrency int `json:"insecure_concurrency,omitempty"`
  18. ExtraHeaders badoption.HTTPHeader `json:"extra_headers,omitempty"`
  19. OutboundTLSOptionsContainer
  20. }