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"`
|
|
|
|
Users []ShadowsocksUser `json:"users,omitempty"`
|
|
|
|
Destinations []ShadowsocksDestination `json:"destinations,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
|
2022-08-04 02:38:20 +00:00
|
|
|
Method string `json:"method"`
|
|
|
|
Password string `json:"password"`
|
2022-09-12 06:51:20 +00:00
|
|
|
Plugin string `json:"plugin,omitempty"`
|
|
|
|
PluginOptions string `json:"plugin_opts,omitempty"`
|
2022-08-04 02:38:20 +00:00
|
|
|
Network NetworkList `json:"network,omitempty"`
|
2022-08-11 02:36:28 +00:00
|
|
|
UoT bool `json:"udp_over_tcp,omitempty"`
|
2023-03-15 05:34:02 +00:00
|
|
|
UoTVersion int `json:"udp_over_tcp_version,omitempty"`
|
2022-08-04 02:38:20 +00:00
|
|
|
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|