2022-07-25 03:29:46 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type VMessInboundOptions struct {
|
|
|
|
ListenOptions
|
2022-08-22 12:20:56 +00:00
|
|
|
Users []VMessUser `json:"users,omitempty"`
|
|
|
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
|
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type VMessUser struct {
|
2022-08-01 04:23:34 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
UUID string `json:"uuid"`
|
|
|
|
AlterId int `json:"alterId,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type VMessOutboundOptions struct {
|
2022-09-03 04:55:10 +00:00
|
|
|
DialerOptions
|
2022-07-25 03:29:46 +00:00
|
|
|
ServerOptions
|
2022-08-22 12:20:56 +00: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"`
|
|
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
2022-08-27 03:28:01 +00:00
|
|
|
PacketAddr bool `json:"packet_addr,omitempty"`
|
2022-08-22 12:20:56 +00:00
|
|
|
Multiplex *MultiplexOptions `json:"multiplex,omitempty"`
|
|
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|