sing-box/option/shadowsocks.go

35 lines
1.2 KiB
Go
Raw Normal View History

2022-07-25 11:29:46 +08:00
package option
type ShadowsocksInboundOptions struct {
ListenOptions
2022-07-27 21:57:21 +08:00
Network NetworkList `json:"network,omitempty"`
Method string `json:"method"`
Password string `json:"password"`
ControlPassword string `json:"control_password,omitempty"`
Users []ShadowsocksUser `json:"users,omitempty"`
Destinations []ShadowsocksDestination `json:"destinations,omitempty"`
2022-07-25 11:29:46 +08: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 12:55:10 +08:00
DialerOptions
2022-07-25 11:29:46 +08:00
ServerOptions
2022-08-04 10:38:20 +08:00
Method string `json:"method"`
Password string `json:"password"`
Plugin string `json:"plugin,omitempty"`
PluginOptions string `json:"plugin_opts,omitempty"`
2022-08-04 10:38:20 +08:00
Network NetworkList `json:"network,omitempty"`
2022-08-11 10:36:28 +08:00
UoT bool `json:"udp_over_tcp,omitempty"`
2022-08-04 10:38:20 +08:00
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
2022-07-25 11:29:46 +08:00
}