kinetex - v1.0.0-rc.1
    Preparing search index...

    Function parseSocks5Url

    • Parse a SOCKS5 proxy URL into a Socks5ProxyConfig.

      Accepts: socks5://[user:pass@]host[:port] socks5h://... (implies remoteDns: true)

      Note: Username and password are URL-decoded (percent-decoded per RFC 3986), not base64-decoded. For example, %40 in the URL becomes @ in the password. This follows standard URL encoding conventions for SOCKS5 URLs.

      Security: URL may contain credentials which are parsed into the config. These credentials are stored in memory but cannot be fully zeroized in JavaScript. Error messages are sanitized to not expose the full URL with credentials.

      Parameters

      • url: string

        SOCKS5 URL (socks5:// or socks5h:// with optional user:pass).

      Returns Socks5ProxyConfig

      A Socks5ProxyConfig parsed from the URL.

      If the URL is malformed, scheme is not socks5/socks5h, or host is empty.