vmess.go 1.0 KB

123456789101112131415161718192021222324252627282930
  1. package option
  2. type VMessInboundOptions struct {
  3. ListenOptions
  4. Users []VMessUser `json:"users,omitempty"`
  5. InboundTLSOptionsContainer
  6. Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
  7. Transport *V2RayTransportOptions `json:"transport,omitempty"`
  8. }
  9. type VMessUser struct {
  10. Name string `json:"name"`
  11. UUID string `json:"uuid"`
  12. AlterId int `json:"alterId,omitempty"`
  13. }
  14. type VMessOutboundOptions struct {
  15. DialerOptions
  16. ServerOptions
  17. UUID string `json:"uuid"`
  18. Security string `json:"security"`
  19. AlterId int `json:"alter_id,omitempty"`
  20. GlobalPadding bool `json:"global_padding,omitempty"`
  21. AuthenticatedLength bool `json:"authenticated_length,omitempty"`
  22. Network NetworkList `json:"network,omitempty"`
  23. OutboundTLSOptionsContainer
  24. PacketEncoding string `json:"packet_encoding,omitempty"`
  25. Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
  26. Transport *V2RayTransportOptions `json:"transport,omitempty"`
  27. }