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).
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,
%40in 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.