Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] ipv6 through socks proxy not working

未关闭
#2 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
networking

调研方向

首先构建二进制文件,并使用提供的 ./socks 命令和 curl -4/-6 SOCKS5 请求重现该问题。根据日志中的 IPv6 目标地址跟踪 SOCKS 服务器的出站拨号路径,并调查为什么它报告 "no route to host",而 IPv4 却能成功。完成的标准是:能够通过代理获取支持 IPv6 的目标,而不会出现 SOCKS5 连接错误。

由索引模型根据 Issue 内容生成。

描述

After building the binary, run the socks server with

./socks --addr :26480 --user-auth [REDACTED] --password [ALSO REDACTED] --country "United States"

It should open a socks server, listening on 26480 both on 127.0.0.1 and ::1 (it did)
When fetching through ipv4:

http_proxy=socks5://localhost:26480 https_proxy=socks5://localhost:26480 curl -4 ip.sb

It works fine, returning a ip which indicates that the traffic do go through the vpn network.
Howver, when fetching through ipv6:

http_proxy=socks5://localhost:26480 https_proxy=socks5://localhost:26480 curl -6 ip.sb

It returns

curl: (97) cannot complete SOCKS5 connection to ip.sb. (4)

The following is the console log of the socks proxy:

socks5 server is listening on :26480
Dialing tcp [2606:4700:20::681a:d1f]:80
socks5: 2025/04/29 19:07:41 [E]: server: connect to [2606:4700:20::681a:d1f]:80 failed, connect tcp [2606:4700:20::681a:d1f]:80: no route to host
Dialing tcp [2606:4700:20::681a:c1f]:80
socks5: 2025/04/29 19:07:43 [E]: server: connect to [2606:4700:20::681a:c1f]:80 failed, connect tcp [2606:4700:20::681a:c1f]:80: no route to host

which indicates that seems ipv6 is not properly supported.
(Need to note that ip.sb by default resolve to a ipv6 address, so it's not caused by the website's lack of ipv6 support. Any sites supported ipv6 should share the same problem with it.)

主要语言
Go
星标
9
派生
10
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

urnetwork/proxy 的其他 Issue

查看 urnetwork/proxy 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。