2022-07-25 11:29:46 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ShadowsocksInboundOptions struct {
|
|
|
|
ListenOptions
|
2022-11-24 12:37:29 +08:00
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
Method string `json:"method"`
|
2023-04-14 20:49:34 +08:00
|
|
|
Password string `json:"password,omitempty"`
|
2022-11-24 12:37:29 +08:00
|
|
|
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
|
2023-03-17 12:24:29 +08:00
|
|
|
Method string `json:"method"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Plugin string `json:"plugin,omitempty"`
|
|
|
|
PluginOptions string `json:"plugin_opts,omitempty"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
UDPOverTCPOptions *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
|
|
|
|
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|