mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-30 12:31:31 +00:00
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
package option
|
|
|
|
type VMessInboundOptions struct {
|
|
ListenOptions
|
|
Users []VMessUser `json:"users,omitempty"`
|
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
|
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|
|
|
|
type VMessUser struct {
|
|
Name string `json:"name"`
|
|
UUID string `json:"uuid"`
|
|
AlterId int `json:"alterId,omitempty"`
|
|
}
|
|
|
|
type VMessOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
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"`
|
|
PacketEncoding string `json:"packet_encoding,omitempty"`
|
|
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|