sub

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encoded string) (string, error)

DecodeBase64 decodes a base64 string, trying both standard and URL-safe encoding and adding padding if necessary

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 TryParsePorts

func TryParsePorts(ports string) []*mynet.PortRange

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL