mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 18:43:14 +00:00
28 lines
978 B
Go
28 lines
978 B
Go
package option
|
|
|
|
type VLESSInboundOptions struct {
|
|
ListenOptions
|
|
Users []VLESSUser `json:"users,omitempty"`
|
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
|
Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
}
|
|
|
|
type VLESSUser struct {
|
|
Name string `json:"name"`
|
|
UUID string `json:"uuid"`
|
|
Flow string `json:"flow,omitempty"`
|
|
}
|
|
|
|
type VLESSOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
UUID string `json:"uuid"`
|
|
Flow string `json:"flow,omitempty"`
|
|
Network NetworkList `json:"network,omitempty"`
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
|
Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
|
|
Transport *V2RayTransportOptions `json:"transport,omitempty"`
|
|
PacketEncoding *string `json:"packet_encoding,omitempty"`
|
|
}
|