2022-07-25 03:29:46 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ShadowsocksInboundOptions struct {
|
|
|
|
ListenOptions
|
2022-07-27 13:57:21 +00: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 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 {
|
|
|
|
OutboundDialerOptions
|
|
|
|
ServerOptions
|
2022-08-04 02:38:20 +00:00
|
|
|
Method string `json:"method"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
2022-08-11 02:36:28 +00:00
|
|
|
UoT bool `json:"udp_over_tcp,omitempty"`
|
2022-08-04 02:38:20 +00:00
|
|
|
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|