hysteria.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  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. Auth []byte `json:"auth,omitempty"`
  10. AuthString string `json:"auth_str,omitempty"`
  11. ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
  12. ReceiveWindowClient uint64 `json:"recv_window_client,omitempty"`
  13. MaxConnClient int `json:"max_conn_client,omitempty"`
  14. DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
  15. TLS *InboundTLSOptions `json:"tls,omitempty"`
  16. }
  17. type HysteriaOutboundOptions struct {
  18. OutboundDialerOptions
  19. ServerOptions
  20. Up string `json:"up,omitempty"`
  21. UpMbps int `json:"up_mbps,omitempty"`
  22. Down string `json:"down,omitempty"`
  23. DownMbps int `json:"down_mbps,omitempty"`
  24. Obfs string `json:"obfs,omitempty"`
  25. Auth []byte `json:"auth,omitempty"`
  26. AuthString string `json:"auth_str,omitempty"`
  27. ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
  28. ReceiveWindow uint64 `json:"recv_window,omitempty"`
  29. DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
  30. Network NetworkList `json:"network,omitempty"`
  31. TLS *OutboundTLSOptions `json:"tls,omitempty"`
  32. }