hysteria2.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package option
  2. type Hysteria2InboundOptions struct {
  3. ListenOptions
  4. UpMbps int `json:"up_mbps,omitempty"`
  5. DownMbps int `json:"down_mbps,omitempty"`
  6. Obfs *Hysteria2Obfs `json:"obfs,omitempty"`
  7. Users []Hysteria2User `json:"users,omitempty"`
  8. IgnoreClientBandwidth bool `json:"ignore_client_bandwidth,omitempty"`
  9. InboundTLSOptionsContainer
  10. Masquerade string `json:"masquerade,omitempty"`
  11. BrutalDebug bool `json:"brutal_debug,omitempty"`
  12. }
  13. type Hysteria2Obfs struct {
  14. Type string `json:"type,omitempty"`
  15. Password string `json:"password,omitempty"`
  16. }
  17. type Hysteria2User struct {
  18. Name string `json:"name,omitempty"`
  19. Password string `json:"password,omitempty"`
  20. }
  21. type Hysteria2OutboundOptions struct {
  22. DialerOptions
  23. ServerOptions
  24. UpMbps int `json:"up_mbps,omitempty"`
  25. DownMbps int `json:"down_mbps,omitempty"`
  26. Obfs *Hysteria2Obfs `json:"obfs,omitempty"`
  27. Password string `json:"password,omitempty"`
  28. Network NetworkList `json:"network,omitempty"`
  29. OutboundTLSOptionsContainer
  30. BrutalDebug bool `json:"brutal_debug,omitempty"`
  31. }