Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialHY2 ¶
func DialHY2(u *url.URL, o *proxyclient.Options) (http.RoundTripper, error)
DialHY2 creates a RoundTripper for Hysteria2 proxy
Types ¶
type HY2Config ¶
type HY2Config struct {
Auth string
Address string
Port int
SNI string
Insecure bool
ObfsType string // "salamander" or "gecko"
ObfsPassword string
ObfsMinPacketSize int
ObfsMaxPacketSize int
Up string // e.g., "100 mbps"
Down string // e.g., "200 mbps"
FastOpen bool
Remark string
// contains filtered or unexported fields
}
HY2Config stores Hysteria2 URL parameters
type HY2URL ¶
type HY2URL struct {
Config *HY2Config
}
func ParseHY2URL ¶
ParseHY2URL parses hysteria2:// or hy2:// URL
Click to show internal directories.
Click to hide internal directories.