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
|
2023-12-11 10:36:06 +00:00
|
|
|
Users []auth.User `json:"users,omitempty"`
|
|
|
|
SetSystemProxy bool `json:"set_system_proxy,omitempty"`
|
|
|
|
InboundTLSOptionsContainer
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
|
|
|
|
2024-11-01 16:39:02 +00:00
|
|
|
type SOCKSOutboundOptions struct {
|
2022-09-03 04:55:10 +00:00
|
|
|
DialerOptions
|
2022-07-25 03:29:46 +00:00
|
|
|
ServerOptions
|
2023-11-08 04:09:22 +00: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 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
|
2023-12-11 10:36:06 +00:00
|
|
|
Username string `json:"username,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
OutboundTLSOptionsContainer
|
|
|
|
Path string `json:"path,omitempty"`
|
|
|
|
Headers HTTPHeader `json:"headers,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|