2022-07-25 11:29:46 +08: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 12:55:10 +08:00
|
|
|
DialerOptions
|
2022-07-25 11:29:46 +08:00
|
|
|
ServerOptions
|
2023-11-08 12:09:22 +08:00
|
|
|
Version string `json:"version,omitempty"`
|
|
|
|
Username string `json:"username,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type HTTPOutboundOptions struct {
|
2022-09-03 12:55:10 +08:00
|
|
|
DialerOptions
|
2022-07-25 11:29:46 +08:00
|
|
|
ServerOptions
|
2023-10-21 12:00:00 +08:00
|
|
|
Username string `json:"username,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
|
|
|
Path string `json:"path,omitempty"`
|
|
|
|
Headers HTTPHeader `json:"headers,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|