页面

2024年4月24日星期三

自制优选IP的测速URL

 

优选IP工具最新版:

https://github.com/frankiejun/cvwt/releases/tag/V1.0.4

测速代码:

https://github.com/frankiejun/cvwt/blob/main/cf_speedtest.js


1. 在CF建一个的workers,命名随意(例如 testspeed)


2.编辑workers代码,把以上代码复制到workers,部署。


3.workers中点设置-->触发器,会自动生成一个路由链接,例如:testspeed.xxxx.workers.dev

,这个便是测速url。


4.点击“添加自定义域”,添加一个自己的域名,主要是方便记忆,跟前面生成的路由链接效果是一样的。(可选)


相关视频:


1 条评论:

  1. 我卡在这个步骤,是什么原因呢?是什么组件没安装的


    root@GL-SFT1200:~/openwrt# /root/openwrt/start.sh config.yaml
    configfile:config.yaml, ipfile:
    0.读取配置文件
    /root/openwrt/start.sh: line 26: yq: command not found
    /root/openwrt/start.sh: line 27: yq: command not found
    /root/openwrt/start.sh: line 28: yq: command not found
    /root/openwrt/start.sh: line 29: yq: command not found
    /root/openwrt/start.sh: line 30: yq: command not found
    /root/openwrt/start.sh: line 31: yq: command not found
    /root/openwrt/start.sh: line 32: yq: command not found
    /root/openwrt/start.sh: line 33: yq: command not found
    /root/openwrt/start.sh: line 34: yq: command not found
    /root/openwrt/start.sh: line 35: yq: command not found
    /root/openwrt/start.sh: line 36: yq: command not found
    /root/openwrt/start.sh: line 37: yq: command not found
    /root/openwrt/start.sh: line 38: yq: command not found
    /root/openwrt/start.sh: line 39: yq: command not found
    /root/openwrt/start.sh: line 40: yq: command not found
    /root/openwrt/start.sh: line 41: yq: command not found
    /root/openwrt/start.sh: line 42: yq: command not found
    /root/openwrt/start.sh: line 43: yq: command not found
    hostname must be set in config file!

    回复删除