mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
26 lines
892 B
Go
26 lines
892 B
Go
package option
|
|
|
|
type TrojanInboundOptions struct {
|
|
ListenOptions
|
|
Users []TrojanUser `json:"users,omitempty"`
|
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
|
Fallback *ServerOptions `json:"fallback,omitempty"`
|
|
FallbackForALPN map[string]*ServerOptions `json:"fallback_for_alpn,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|
|
|
|
type TrojanUser struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type TrojanOutboundOptions struct {
|
|
OutboundDialerOptions
|
|
ServerOptions
|
|
Password string `json:"password"`
|
|
Network NetworkList `json:"network,omitempty"`
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
|
Multiplex *MultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|