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

增加一个接口地址,支持独立IPv4 IPv6。此接口服务由我个人公益维护 #1230

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

ritaswc
Copy link
Contributor

@ritaswc ritaswc commented Aug 25, 2024

What does this PR do?

增加一个通过HTTP获取本机网卡的公网IP地址接口,IPv4/IPv6均可以获取,由我个人公益维护。接口返回当前IP的归属地信息

Motivation

增加用户可选的接口列表,防止单点故障。当前域名接口暂不限速。

Additional Notes

接口由两台服务器支持用户访问,中国大陆访问重庆联通双栈,其他地区用户访问香港阿里云双栈,提升海内外用户获取到公网的速度

@jeessy2
Copy link
Owner

jeessy2 commented Aug 25, 2024

长期稳定运行?

@ritaswc
Copy link
Contributor Author

ritaswc commented Aug 25, 2024

长期稳定运行?

对的,长期维护
另外一个开源项目也使用了
https://github.com/zhongyang219/TrafficMonitor/blob/496e05024d6bb64c644e2f17bd05b908d7a71002/TrafficMonitor/Common.cpp#L726

@jeessy2
Copy link
Owner

jeessy2 commented Aug 25, 2024

看到域名都快过期了?

@ritaswc
Copy link
Contributor Author

ritaswc commented Aug 25, 2024

有商业项目在运行的,域名会续费
image

Copy link

This PR is stale because it has been open 30 days with no activity. Remove Stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Sep 25, 2024
@ritaswc
Copy link
Contributor Author

ritaswc commented Sep 25, 2024

@jeessy2 PR快过期了,看你是否有疑问。如果你觉得不合适,也可以关闭此PR

@jeessy2
Copy link
Owner

jeessy2 commented Sep 25, 2024

主要是长期稳定不?看域名都快过期了,到时难得处理

@ritaswc
Copy link
Contributor Author

ritaswc commented Sep 25, 2024

image
刚续费5年

Comment on lines +214 to +215
"Ipv4UrlHelp": "https://api.ipify.org, https://myip.ipip.net, https://ddns.oray.com/checkip, https://ip.3322.net, https://v4.yinghualuo.cn/bejson",
"Ipv6UrlHelp": "https://speed.neu6.edu.cn/getIP.php, https://v6.ident.me, https://6.ipw.cn, https://v6.yinghualuo.cn/bejson",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两行不用加,要加下面一起加

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下面加好了,之前把中文的帮助漏掉了

@jeessy2 jeessy2 merged commit 394efc2 into jeessy2:master Sep 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants