mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
|
package option
|
||
|
|
||
|
type Hysteria2InboundOptions struct {
|
||
|
ListenOptions
|
||
|
UpMbps int `json:"up_mbps,omitempty"`
|
||
|
DownMbps int `json:"down_mbps,omitempty"`
|
||
|
Obfs *Hysteria2Obfs `json:"obfs,omitempty"`
|
||
|
Users []Hysteria2User `json:"users,omitempty"`
|
||
|
IgnoreClientBandwidth bool `json:"ignore_client_bandwidth,omitempty"`
|
||
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
||
|
Masquerade string `json:"masquerade,omitempty"`
|
||
|
}
|
||
|
|
||
|
type Hysteria2Obfs struct {
|
||
|
Type string `json:"type,omitempty"`
|
||
|
Password string `json:"password,omitempty"`
|
||
|
}
|
||
|
|
||
|
type Hysteria2User struct {
|
||
|
Name string `json:"name,omitempty"`
|
||
|
Password string `json:"password,omitempty"`
|
||
|
}
|
||
|
|
||
|
type Hysteria2OutboundOptions struct {
|
||
|
DialerOptions
|
||
|
ServerOptions
|
||
|
UpMbps int `json:"up_mbps,omitempty"`
|
||
|
DownMbps int `json:"down_mbps,omitempty"`
|
||
|
Obfs *Hysteria2Obfs `json:"obfs,omitempty"`
|
||
|
Password string `json:"password,omitempty"`
|
||
|
Network NetworkList `json:"network,omitempty"`
|
||
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
||
|
}
|