Skip to content

fix: do not try to resolve proxy IPv6 addresses in square brackets#8268

Merged
link2xt merged 1 commit into
mainfrom
link2xt/xtpmrynzrlqs
May 23, 2026
Merged

fix: do not try to resolve proxy IPv6 addresses in square brackets#8268
link2xt merged 1 commit into
mainfrom
link2xt/xtpmrynzrlqs

Conversation

@link2xt
Copy link
Copy Markdown
Collaborator

@link2xt link2xt commented May 23, 2026

"[::1]" is not a hostname, but an IPv6 address,
and should be passed as "::1" to tokio::net functions.

Otherwise connecting to proxy addresses such as socks5://[::1]:9150 fails by trying to resolve IPv6 address with DNS.

Fixes #8267

"[::1]" is not a hostname, but an IPv6 address,
and should be passed as "::1" to tokio::net functions.

Otherwise connecting to proxy addresses such as `socks5://[::1]:9150`
fails by trying to resolve IPv6 address with DNS.
@link2xt link2xt marked this pull request as ready for review May 23, 2026 04:20
@link2xt link2xt merged commit 16b65c5 into main May 23, 2026
31 checks passed
@link2xt link2xt deleted the link2xt/xtpmrynzrlqs branch May 23, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connecting to IPv6 proxies fails

2 participants