mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-04 20:36:37 +00:00
39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
package option
|
|
|
|
import (
|
|
"github.com/sagernet/sing/common/auth"
|
|
"github.com/sagernet/sing/common/json/badoption"
|
|
)
|
|
|
|
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"`
|
|
InboundTLSOptionsContainer
|
|
}
|
|
|
|
type SOCKSOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
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"`
|
|
}
|
|
|
|
type HTTPOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
OutboundTLSOptionsContainer
|
|
Path string `json:"path,omitempty"`
|
|
Headers badoption.HTTPHeader `json:"headers,omitempty"`
|
|
}
|