mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 18:43:14 +00:00
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
package option
|
|
|
|
type ShadowsocksInboundOptions struct {
|
|
ListenOptions
|
|
Network NetworkList `json:"network,omitempty"`
|
|
Method string `json:"method"`
|
|
Password string `json:"password,omitempty"`
|
|
Users []ShadowsocksUser `json:"users,omitempty"`
|
|
Destinations []ShadowsocksDestination `json:"destinations,omitempty"`
|
|
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
}
|
|
|
|
type ShadowsocksUser struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type ShadowsocksDestination struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
ServerOptions
|
|
}
|
|
|
|
type ShadowsocksOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
Method string `json:"method"`
|
|
Password string `json:"password"`
|
|
Plugin string `json:"plugin,omitempty"`
|
|
PluginOptions string `json:"plugin_opts,omitempty"`
|
|
Network NetworkList `json:"network,omitempty"`
|
|
UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
|
|
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
}
|