Files
sing-box-extended-mirror/option/shadowsocks.go
T

36 lines
1.7 KiB
Go
Raw Normal View History

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"`
2026-07-24 18:15:14 +08:00
Method string `json:"method" enum:"none,aes-128-gcm,aes-192-gcm,aes-256-gcm,chacha20-ietf-poly1305,xchacha20-ietf-poly1305,2022-blake3-aes-128-gcm,2022-blake3-aes-256-gcm,2022-blake3-chacha20-poly1305"`
Password string `json:"password,omitempty"`
2022-11-24 12:37:29 +08:00
Users []ShadowsocksUser `json:"users,omitempty"`
Destinations []ShadowsocksDestination `json:"destinations,omitempty"`
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
2025-04-14 15:41:20 +08:00
Managed bool `json:"managed,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
2026-07-24 18:15:14 +08:00
Method string `json:"method" enum:"none,aes-128-gcm,aes-192-gcm,aes-256-gcm,chacha20-ietf-poly1305,xchacha20-ietf-poly1305,2022-blake3-aes-128-gcm,2022-blake3-aes-256-gcm,2022-blake3-chacha20-poly1305,aes-128-ctr,aes-192-ctr,aes-256-ctr,aes-128-cfb,aes-192-cfb,aes-256-cfb,rc4-md5,chacha20-ietf,xchacha20"`
Password string `json:"password"`
Plugin string `json:"plugin,omitempty"`
PluginOptions string `json:"plugin_opts,omitempty"`
Network NetworkList `json:"network,omitempty"`
UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
2022-07-25 11:29:46 +08:00
}