mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
42 lines
2.1 KiB
Go
42 lines
2.1 KiB
Go
package option
|
|
|
|
import "github.com/sagernet/sing/common/byteformats"
|
|
|
|
type HysteriaInboundOptions struct {
|
|
ListenOptions
|
|
Up *byteformats.NetworkBytesCompat `json:"up,omitempty"`
|
|
UpMbps int `json:"up_mbps,omitempty"`
|
|
Down *byteformats.NetworkBytesCompat `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
|
|
}
|
|
|
|
type HysteriaUser struct {
|
|
Name string `json:"name,omitempty"`
|
|
Auth []byte `json:"auth,omitempty"`
|
|
AuthString string `json:"auth_str,omitempty"`
|
|
}
|
|
|
|
type HysteriaOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
Up *byteformats.NetworkBytesCompat `json:"up,omitempty"`
|
|
UpMbps int `json:"up_mbps,omitempty"`
|
|
Down *byteformats.NetworkBytesCompat `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
|
|
}
|