来源:https://mirror.tuna.tsinghua.edu.cn/help/openwrt/
手工替换
登录到路由器,并编辑 /etc/opkg/distfeeds.conf 文件,将其中的 http://downloads.openwrt.org 替换为
https://mirrors.tuna.tsinghua.edu.cn/openwrt
即可。
自动替换
执行如下命令自动替换
sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
注:使用 HTTPS 可以有效避免国内运营商的缓存劫持,但需要另行安装 libustream-openssl ca-bundle ca-certificates 。
opkg install
libustream-openssl ca-bundle ca-certificates