VPS上更新hysteria和naiveproxy的脚本
#/bin/bash
# update hysteria
wget https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-amd64
chmod +x hysteria-linux-amd64
systemctl stop hysteria-server
mv hysteria-linux-amd64 /usr/local/bin/hysteria
systemctl start hysteria-bbox
hysteria version
# update naiveproxy server
wget https://github.com/klzgrad/forwardproxy/releases/latest/download/caddy-forwardproxy-naive.tar.xz
tar -vxf caddy-forwardproxy-naive.tar.xz
systemctl stop naive
mv caddy-forwardproxy-naive/caddy /usr/bin/caddy
systemctl start naive
rm -r caddy-forwardproxy-naive
rm caddy-forwardproxy-naive.tar.xz
caddy --version备注:
- naiveproxy server是caddy forward server,跟客户端不是一码事
- AI虽然能解决不少事,但也经常出错。hysteria的最新版静态下载链接,Gemini给的是对的,但对naiveproxy server怎么都给不出。
更新naiveproxy client的脚本
curl -s https://api.github.com/repos/klzgrad/naiveproxy/releases/latest | grep "browser_download_url" | grep "linux-x64.tar.xz" | cut -d '"' -f 4 | wget -qi -










