github.com/sagernet/sing-box@v1.9.0-rc.20/option/hysteria2.go (about)

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