Versions in this module Expand all Collapse all v1 v1.3.1 May 29, 2026 v1.3.0 May 27, 2026 Changes in this version + const ApiUrl + const ApiVersion + const ConnectSNI + const ConnectURI + const DefaultLocale + const DefaultModel + const KeyTypeMasque + const KeyTypeWg + const TunTypeMasque + const TunTypeWg + const ZeroTierSNI + var Headers = map[string]string + func CheckIfname(name string) error + func DefaultQuicConfig(keepalivePeriod time.Duration, initialPacketSize uint16) *quic.Config + func FormatLevel(level Level) string + func GenerateCert(privKey *ecdsa.PrivateKey, pubKey *ecdsa.PublicKey) ([][]byte, error) + func GenerateEcKeyPair() ([]byte, []byte, error) + func GenerateRandomAndroidSerial() (string, error) + func GenerateRandomWgPubkey() (string, error) + func GetLogWriter() io.Writer + func GetProxyResolver(localDNS, systemDNS bool, tunNet *netstack.Net, dnsAddrs []netip.Addr, ...) *net.Resolver + func InstallDefaultLogTZStamp() + func LoginToBase64(username, password string) string + func NewLogger(tag string) logger.ContextLogger + func NewNetstackResolver(tunNet *netstack.Net, dnsAddrs []netip.Addr) *net.Resolver + func NewStaticResolver(dnsAddrs []netip.Addr) *net.Resolver + func NewTZStampWriter(w io.Writer) io.Writer + func SetIPv4Address(ifaceName, ipAddr, mask string) error — windows/amd64 + func SetIPv4MTU(ifaceName string, mtu int) error — windows/amd64 + func SetIPv6Address(ifaceName, ipAddr, mask string) error — windows/amd64 + func SetIPv6MTU(ifaceName string, mtu int) error — windows/amd64 + func SetLogLevel(level Level) + func SetupLogging(filePath string) error + func TimeAsCfString(t time.Time) string + type Level int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelPanic + const LevelTrace + const LevelWarn + func ParseLevel(level string) Level + type PortMapping struct + BindAddress string + LocalPort int + RemoteIP string + RemotePort int + func ParsePortMapping(port string) (PortMapping, error) + type SOCKS5Config struct + Addr string + Logger logger.ContextLogger + Password string + Resolver *TunnelDNSResolver + TCPTimeout time.Duration + TunNet *netstack.Net + UDPTimeout time.Duration + Username string + type SOCKS5Server struct + func NewSOCKS5Server(cfg SOCKS5Config) (*SOCKS5Server, error) + func (s *SOCKS5Server) Start() error + type TunnelDNSResolver struct + DNSAddrs []netip.Addr + Timeout time.Duration + TunNet *netstack.Net + UseOSResolver bool + func (r TunnelDNSResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)