sing-box/option/trojan.go

27 lines
849 B
Go
Raw Normal View History

2022-08-08 08:56:04 +08:00
package option
type TrojanInboundOptions struct {
ListenOptions
Users []TrojanUser `json:"users,omitempty"`
InboundTLSOptionsContainer
2022-08-25 13:35:48 +08:00
Fallback *ServerOptions `json:"fallback,omitempty"`
FallbackForALPN map[string]*ServerOptions `json:"fallback_for_alpn,omitempty"`
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
2022-08-25 13:35:48 +08:00
Transport *V2RayTransportOptions `json:"transport,omitempty"`
2022-08-08 08:56:04 +08:00
}
type TrojanUser struct {
Name string `json:"name"`
Password string `json:"password"`
}
type TrojanOutboundOptions struct {
2022-09-03 12:55:10 +08:00
DialerOptions
2022-08-08 08:56:04 +08:00
ServerOptions
Password string `json:"password"`
Network NetworkList `json:"network,omitempty"`
OutboundTLSOptionsContainer
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
Transport *V2RayTransportOptions `json:"transport,omitempty"`
2022-08-08 08:56:04 +08:00
}