sing-box/option/simple.go

34 lines
959 B
Go
Raw Permalink Normal View History

2022-07-25 03:29:46 +00:00
package option
import "github.com/sagernet/sing/common/auth"
type SocksInboundOptions struct {
ListenOptions
Users []auth.User `json:"users,omitempty"`
}
type HTTPMixedInboundOptions struct {
ListenOptions
Users []auth.User `json:"users,omitempty"`
SetSystemProxy bool `json:"set_system_proxy,omitempty"`
TLS *InboundTLSOptions `json:"tls,omitempty"`
}
type SocksOutboundOptions struct {
2022-09-03 04:55:10 +00:00
DialerOptions
2022-07-25 03:29:46 +00:00
ServerOptions
Version string `json:"version,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Network NetworkList `json:"network,omitempty"`
2022-08-12 09:55:52 +00:00
UoT bool `json:"udp_over_tcp,omitempty"`
2022-07-25 03:29:46 +00:00
}
type HTTPOutboundOptions struct {
2022-09-03 04:55:10 +00:00
DialerOptions
2022-07-25 03:29:46 +00:00
ServerOptions
2022-08-23 13:07:35 +00:00
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
TLS *OutboundTLSOptions `json:"tls,omitempty"`
2022-07-25 03:29:46 +00:00
}