vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.86k stars 3.1k forks source link

[Bug] 首页的IP 地址的 IP.TB 地址一直显示为查询中... #3854

Closed cngzsunny closed 5 months ago

cngzsunny commented 5 months ago

Verify Steps

OpenClash Version

v0.46.003-beta

Bug on Environment

Official OpenWrt

OpenWrt Version

23.05.3

Bug on Platform

Linux-arm64

Describe the Bug

打开首页,在IP地址栏目里面,IP.TB 这项一直显示 查询中……

To Reproduce

打开首页,在IP地址栏目里面,IP.TB 这项一直显示 查询中……

OpenClash Log

-

OpenClash Config

No response

Expected Behavior

打开首页,在IP地址栏目里面,IP.TB 应该能够显示国内IP,或者换做其他显示国内IP的提供商。

用Chrome检查页面操作,这里是访问https://www.taobao.com/help/getip.php?callback=ipCallback来获取国内IP地址,但返回是403代码,应该是淘宝那边ban了这个访问了

Additional Context

No response

vernesong commented 5 months ago

dev换了

cngzsunny commented 5 months ago

用dev分支的myip.htm替换现在运行时的文件搞定了

animo66 commented 5 months ago

遇到了同样的问题,请问最终的解决办法是用哪个文件替换哪个文件?

takeseem commented 5 months ago
if [ -d "/usr/lib/lua/luci/view/openclash" ]; then
  cd /usr/lib/lua/luci/view/openclash
  cp -rp myip.htm myip.htm.$(date +%Y-%m-%d_%H-%M-%S)
  curl -L https://github.com/vernesong/OpenClash/raw/dev/luci-app-openclash/luasrc/view/openclash/myip.htm -O myip.htm
  ls -lsa /usr/lib/lua/luci/view/openclash|grep myip
fi

@animo66 直接执行代码即可