simple.go 1001 B

1234567891011121314151617181920212223242526272829303132333435
  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. InboundTLSOptionsContainer
  12. }
  13. type SocksOutboundOptions struct {
  14. DialerOptions
  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. UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
  21. }
  22. type HTTPOutboundOptions struct {
  23. DialerOptions
  24. ServerOptions
  25. Username string `json:"username,omitempty"`
  26. Password string `json:"password,omitempty"`
  27. OutboundTLSOptionsContainer
  28. Path string `json:"path,omitempty"`
  29. Headers HTTPHeader `json:"headers,omitempty"`
  30. }