2022-08-08 00:56:04 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type TrojanInboundOptions struct {
|
|
|
|
ListenOptions
|
2022-08-23 04:11:56 +00:00
|
|
|
Users []TrojanUser `json:"users,omitempty"`
|
|
|
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
|
|
|
Fallback *ServerOptions `json:"fallback,omitempty"`
|
|
|
|
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 {
|
|
|
|
OutboundDialerOptions
|
|
|
|
ServerOptions
|
2022-08-23 04:11:56 +00:00
|
|
|
Password string `json:"password"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
|
|
|
Multiplex *MultiplexOptions `json:"multiplex,omitempty"`
|
|
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
2022-08-08 00:56:04 +00:00
|
|
|
}
|