sing-box/option/shadowsocks.go

35 lines
1.2 KiB
Go
Raw Normal View History

2022-07-25 03:29:46 +00:00
package option
type ShadowsocksInboundOptions struct {
ListenOptions
2022-11-24 04:37:29 +00:00
Network NetworkList `json:"network,omitempty"`
Method string `json:"method"`
Password string `json:"password,omitempty"`
2022-11-24 04:37:29 +00:00
Users []ShadowsocksUser `json:"users,omitempty"`
Destinations []ShadowsocksDestination `json:"destinations,omitempty"`
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
2022-07-25 03:29:46 +00:00
}
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 {
2022-09-03 04:55:10 +00:00
DialerOptions
2022-07-25 03:29:46 +00:00
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"`
2022-07-25 03:29:46 +00:00
}