mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 19:22:23 +08:00
27 lines
849 B
Go
27 lines
849 B
Go
package option
|
|
|
|
type TrojanInboundOptions struct {
|
|
ListenOptions
|
|
Users []TrojanUser `json:"users,omitempty"`
|
|
InboundTLSOptionsContainer
|
|
Fallback *ServerOptions `json:"fallback,omitempty"`
|
|
FallbackForALPN map[string]*ServerOptions `json:"fallback_for_alpn,omitempty"`
|
|
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|
|
|
|
type TrojanUser struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type TrojanOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
Password string `json:"password"`
|
|
Network NetworkList `json:"network,omitempty"`
|
|
OutboundTLSOptionsContainer
|
|
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|