1
AoEiuV020JP 2023-10-20 17:39:30 +08:00
线程指的是梯子?那么关键应该是你用的是什么梯子,而不是 openwrt ,
比如 clash 的 url-test , 你可以置顶 test 地址为 github ,那就会自动选择能上 github 的节点了, 不过 github 很容易连不上吗? |
2
AoEiuV020JP 2023-10-20 17:39:50 +08:00
@AoEiuV020JP #1 线程=>线路,
|
3
AreYou0k 2023-10-20 17:42:20 +08:00
@AoEiuV020JP #1 确实, 除了 clash 自动切换其它的都差点意思.
|
4
xinmans OP @AoEiuV020JP 用的 passwall 。
|
5
TinyBBC 2023-10-20 17:44:16 +08:00
个人认为,是不是你的鸡厂不太行啊。。。
|
7
flynaj 2023-10-21 02:14:54 +08:00 via Android
mwan3 smartdns ,无感
|
9
xinmans OP 写了一个脚本实现我需要的能力
#!/bin/sh check_node_availability() { local url=$1 response=$(curl -s -I "$url") if echo "$response" | grep -q "200 OK"; then echo "$url is accessible" return 0 else echo "$url is not accessible" return 1 fi } check_url() { success_count=0 for _ in 1 2 3 do if check_node_availability "https://github.com"; then success_count=$((success_count + 1)) fi wait sleep 3 done return "$success_count" } while : do # 只在美国和英国节点间切换 tail -10 for node_id in `uci export passwall | grep 'config nodes' | tail -10 | awk '{print $3}'`; do eval "i=${node_id}" uci delete passwall.@global[0].tcp_node wait uci add_list passwall.@global[0].tcp_node=${i} uci show passwall.@global[0].tcp_node wait uci commit passwall wait /etc/init.d/passwall restart wait sleep 10 while : do success_count=$(check_url) if [ "$success_count" -ne 3 ]; then echo "Switching to another node..." break else sleep 600 fi done done done |
10
linuxgo 2023-11-08 17:31:53 +08:00
op 里很多插件都可以自动切换线路啊
|