hysteria.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package option
  2. type HysteriaInboundOptions struct {
  3. ListenOptions
  4. Up string `json:"up,omitempty"`
  5. UpMbps int `json:"up_mbps,omitempty"`
  6. Down string `json:"down,omitempty"`
  7. DownMbps int `json:"down_mbps,omitempty"`
  8. Obfs string `json:"obfs,omitempty"`
  9. Users []HysteriaUser `json:"users,omitempty"`
  10. ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
  11. ReceiveWindowClient uint64 `json:"recv_window_client,omitempty"`
  12. MaxConnClient int `json:"max_conn_client,omitempty"`
  13. DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
  14. InboundTLSOptionsContainer
  15. }
  16. type HysteriaUser struct {
  17. Name string `json:"name,omitempty"`
  18. Auth []byte `json:"auth,omitempty"`
  19. AuthString string `json:"auth_str,omitempty"`
  20. }
  21. type HysteriaOutboundOptions struct {
  22. DialerOptions
  23. ServerOptions
  24. Up string `json:"up,omitempty"`
  25. UpMbps int `json:"up_mbps,omitempty"`
  26. Down string `json:"down,omitempty"`
  27. DownMbps int `json:"down_mbps,omitempty"`
  28. Obfs string `json:"obfs,omitempty"`
  29. Auth []byte `json:"auth,omitempty"`
  30. AuthString string `json:"auth_str,omitempty"`
  31. ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
  32. ReceiveWindow uint64 `json:"recv_window,omitempty"`
  33. DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
  34. Network NetworkList `json:"network,omitempty"`
  35. OutboundTLSOptionsContainer
  36. }