vmess.go 1.1 KB

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