Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

国内双栈服务器只显示 IPv6 #266

Closed
JingBh opened this issue Jan 6, 2024 · 3 comments · Fixed by #291
Closed

国内双栈服务器只显示 IPv6 #266

JingBh opened this issue Jan 6, 2024 · 3 comments · Fixed by #291
Labels
enhancement New feature or request

Comments

@JingBh
Copy link

JingBh commented Jan 6, 2024

服务端和客户端都是双栈的,但是位于国内的客户端 online4 显示为 false

读了代码,分析应该是因为客户端连不上 ipv4.google.com,再加上和服务端通信用的是 IPv6,所以检测结果是 IPv4 不在线。

请问可否在客户端加上选项,替换其他域名进行检测,或者干脆提供一个选项,允许把 online4online6 强制设为 true?感谢🙏

@qq565425677
Copy link

同求修改一下,这里一个workaround是用python版的客户端自己改代码...

@zdz zdz added the enhancement New feature or request label Jan 14, 2024
@asukaminato0721
Copy link
Contributor

记录一下代码对应位置。

url 位置

static IPV4_ADDR: &str = "ipv4.google.com:80";
static IPV6_ADDR: &str = "ipv6.google.com:80";

client 参数位置

#[arg(long = "ct", env = "SSR_CT_ADDR", default_value = CT, help = "China Telecom probe addr")]
ct_addr: String,
#[arg(long = "cm", env = "SSR_CM_ADDR", default_value = CM, help = "China Mobile probe addr")]
cm_addr: String,
#[arg(long = "cu", env = "SSR_CU_ADDR", default_value = CU, help = "China Unicom probe addr")]
cu_addr: String,

@zdz
Copy link
Owner

zdz commented Feb 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants