mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-29 03:51:31 +00:00
32 lines
1,015 B
Go
32 lines
1,015 B
Go
package option
|
|
|
|
type ShadowsocksInboundOptions struct {
|
|
ListenOptions
|
|
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"`
|
|
}
|
|
|
|
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
|
|
Method string `json:"method"`
|
|
Password string `json:"password"`
|
|
Network NetworkList `json:"network,omitempty"`
|
|
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
|
|
}
|