sing-box/option/vmess.go

29 lines
1.2 KiB
Go
Raw Normal View History

2022-07-25 11:29:46 +08:00
package option
type VMessInboundOptions struct {
ListenOptions
2022-08-22 18:53:47 +08:00
Users []VMessUser `json:"users,omitempty"`
TLS *InboundTLSOptions `json:"tls,omitempty"`
Transport *V2RayInboundTransportOptions `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 {
OutboundDialerOptions
ServerOptions
2022-08-22 18:53:47 +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"`
TLS *OutboundTLSOptions `json:"tls,omitempty"`
Multiplex *MultiplexOptions `json:"multiplex,omitempty"`
Transport *V2RayOutboundTransportOptions `json:"transport,omitempty"`
2022-07-25 11:29:46 +08:00
}