2022-07-25 11:29:46 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type VMessInboundOptions struct {
|
|
|
|
ListenOptions
|
2023-12-11 18:36:06 +08:00
|
|
|
Users []VMessUser `json:"users,omitempty"`
|
|
|
|
InboundTLSOptionsContainer
|
2023-11-08 12:09:22 +08:00
|
|
|
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type VMessUser struct {
|
2022-08-01 12:23:34 +08:00
|
|
|
Name string `json:"name"`
|
|
|
|
UUID string `json:"uuid"`
|
|
|
|
AlterId int `json:"alterId,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type VMessOutboundOptions struct {
|
2022-09-03 12:55:10 +08:00
|
|
|
DialerOptions
|
2022-07-25 11:29:46 +08:00
|
|
|
ServerOptions
|
2023-12-11 18:36:06 +08:00
|
|
|
UUID string `json:"uuid"`
|
|
|
|
Security string `json:"security"`
|
|
|
|
AlterId int `json:"alter_id,omitempty"`
|
|
|
|
GlobalPadding bool `json:"global_padding,omitempty"`
|
|
|
|
AuthenticatedLength bool `json:"authenticated_length,omitempty"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
OutboundTLSOptionsContainer
|
|
|
|
PacketEncoding string `json:"packet_encoding,omitempty"`
|
|
|
|
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
}
|