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