Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 decodes a base64 string, trying both standard and URL-safe encoding and adding padding if necessary
func ParseHysteriaFromLink ¶
func ParseHysteriaFromLink(link string) (*configs.OutboundHandlerConfig, error)
TODO: pinSHA256 hysteria2://letmein@example.com:123,5000-6000/?insecure=1&obfs= salamander&obfs-password=gawrgura&pinSHA256=deadbeef&sni=real.example.com
func ShareLinkQueryExtraFromStored ¶ added in v1.2.3
ShareLinkQueryExtraFromStored parses the subscription DB text field into a map. Accepts JSON objects (e.g. {"tx":"10"}) or query strings (e.g. tx=10&foo=bar).
func TryParsePorts ¶
TryParsePorts parses a string of ports in format "123,5000-6000" Returns a non-empty slice of PortRange if ports is valid, otherwise returns nil
Types ¶
type DecodeResult ¶
type DecodeResult struct {
Configs []*configs.OutboundHandlerConfig
Description string
FailedNodes []string
}
Click to show internal directories.
Click to hide internal directories.