2022-08-19 07:42:57 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type HysteriaInboundOptions struct {
|
|
|
|
ListenOptions
|
2023-12-11 10:36:06 +00:00
|
|
|
Up string `json:"up,omitempty"`
|
|
|
|
UpMbps int `json:"up_mbps,omitempty"`
|
|
|
|
Down string `json:"down,omitempty"`
|
|
|
|
DownMbps int `json:"down_mbps,omitempty"`
|
|
|
|
Obfs string `json:"obfs,omitempty"`
|
|
|
|
Users []HysteriaUser `json:"users,omitempty"`
|
|
|
|
ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
|
|
|
|
ReceiveWindowClient uint64 `json:"recv_window_client,omitempty"`
|
|
|
|
MaxConnClient int `json:"max_conn_client,omitempty"`
|
|
|
|
DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
|
|
|
|
InboundTLSOptionsContainer
|
2022-08-19 07:42:57 +00:00
|
|
|
}
|
|
|
|
|
2022-11-09 13:00:08 +00:00
|
|
|
type HysteriaUser struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Auth []byte `json:"auth,omitempty"`
|
|
|
|
AuthString string `json:"auth_str,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-08-19 07:42:57 +00:00
|
|
|
type HysteriaOutboundOptions struct {
|
2022-09-03 04:55:10 +00:00
|
|
|
DialerOptions
|
2022-08-19 07:42:57 +00:00
|
|
|
ServerOptions
|
2023-12-11 10:36:06 +00:00
|
|
|
Up string `json:"up,omitempty"`
|
|
|
|
UpMbps int `json:"up_mbps,omitempty"`
|
|
|
|
Down string `json:"down,omitempty"`
|
|
|
|
DownMbps int `json:"down_mbps,omitempty"`
|
|
|
|
Obfs string `json:"obfs,omitempty"`
|
|
|
|
Auth []byte `json:"auth,omitempty"`
|
|
|
|
AuthString string `json:"auth_str,omitempty"`
|
|
|
|
ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
|
|
|
|
ReceiveWindow uint64 `json:"recv_window,omitempty"`
|
|
|
|
DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
|
|
|
OutboundTLSOptionsContainer
|
2022-08-19 07:42:57 +00:00
|
|
|
}
|