sing-box/option/shadowsocks.go

32 lines
987 B
Go
Raw Normal View History

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-07-29 16:29:22 +00:00
Method string `json:"method"`
Password string `json:"password"`
Network NetworkList `json:"network,omitempty"`
Multiplex *MultiplexOptions `json:"multiplex,omitempty"`
2022-07-25 03:29:46 +00:00
}