lee1080 / CloudflareSpeedTestDDNS

使用CloudflareSpeedTest工具优选IP后自动DDNS到Cloudflare
464 stars 158 forks source link

线路2的反向代理的一些更新建议 #46

Open colin2022 opened 9 months ago

colin2022 commented 9 months ago

https://t.me/cf_push 大佬的这个项目其实有针对端口分门别类形成的txt,像这样31898-1-8443.txt,31898-1-2096.txt,这个项目在https://zip.baipiao.eu.org里。。修改一下curl -sSf -o ./cf_ddns/pr_ip.txt https://cf.vbar.fun/zip_baipiao_eu_org/pr_ip.txt其实不需要每次都测这么多ip,CFST_TP填啥就专门针对这个端口测速。rm -rf ./txt && rm -rf ./txt.zip && curl -s https://zip.baipiao.eu.org -o ./txt.zip && unzip -o -q txt.zip -d ./txt && find ./txt -name "*-${CFST_TP}.txt" | xargs cat > ./cf_ddns/pr_ip.txt即可

lee1080 commented 9 months ago

这个可以的,我在调试的时候就在想需要测延迟的数据太多了,导致运行时间太长,后面会参考优化。

colin2022 commented 9 months ago

这个可以的,我在调试的时候就在想需要测延迟的数据太多了,导致运行时间太长,后面会参考优化。

大佬实测发现有些人的ip(比如移动)会因为被github限流导致curl不到https://api.github.com/repos/XIU2/CloudflareSpeedTest/releases/latest。导致curl --silent https://api.github.com/repos/XIU2/CloudflareSpeedTest/releases/latest | grep "tag_name" | cut -d '"' -f 4是空的。必须设置条件阻断空值。另外https://zip.baipiao.eu.org/这个网址也不是所有人都能访问的。同样是这个移动ip无法访问。

GreyFlorence commented 8 months ago

这个issue直接解决了我的问题。这其实是一个可能导致软件无法正常运行的关键问题,因为当代理非目标端口的反代ip的延迟较低时,测速阶段排列出的10个ip可能都是非目标端口的反代ip。最后测速可能出现10个ip都不代理目标端口的情况。此时测速便没有速度,会卡在测速界面,更无法筛选到可用ip。

fsyllkn commented 8 months ago

使用线路2,能够获取到对应的端口ip池子,跑下来测速0,不知道是不是最新版本问题?旧版本使用的同一个测速地址,能够正常测速。

colin2022 commented 8 months ago

使用线路2,能够获取到对应的端口ip池子,跑下来测速0,不知道是不是最新版本问题?旧版本使用的同一个测速地址,能够正常测速。

更换测速服务url.具体就是修改一下CFST_URL