simple.go 975 B

123456789101112131415161718192021222324252627282930313233
  1. package option
  2. import "github.com/sagernet/sing/common/auth"
  3. type SocksInboundOptions struct {
  4. ListenOptions
  5. Users []auth.User `json:"users,omitempty"`
  6. }
  7. type HTTPMixedInboundOptions struct {
  8. ListenOptions
  9. Users []auth.User `json:"users,omitempty"`
  10. SetSystemProxy bool `json:"set_system_proxy,omitempty"`
  11. TLS *InboundTLSOptions `json:"tls,omitempty"`
  12. }
  13. type SocksOutboundOptions struct {
  14. OutboundDialerOptions
  15. ServerOptions
  16. Version string `json:"version,omitempty"`
  17. Username string `json:"username,omitempty"`
  18. Password string `json:"password,omitempty"`
  19. Network NetworkList `json:"network,omitempty"`
  20. UoT bool `json:"udp_over_tcp,omitempty"`
  21. }
  22. type HTTPOutboundOptions struct {
  23. OutboundDialerOptions
  24. ServerOptions
  25. Username string `json:"username,omitempty"`
  26. Password string `json:"password,omitempty"`
  27. TLS *OutboundTLSOptions `json:"tls,omitempty"`
  28. }