mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-04 05:27:06 +08:00

按照大雕的 ssr 改了一个简化版的 v2ray 。。 支持的功能比较少。。只有基本款的 tcp/kcp/ws , tls/mux ,动态端口什么的没写 使用前需要把 v2ray 和 v2ctl 放在 /usr/bin/v2ray/ 目录下并 chmod +x 增加了 lua-cjson 和 ca-certificates 依赖,前者被 /etc/v2ray/gen_config.lua 用于生成 v2ray 的 json 配置文件, 后者用于 tls+ws 模式下的系统的证书 翻译可能不全,不过有些翻译了的话让人感到更奇怪。。(逃
21 lines
471 B
Bash
Executable File
21 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
/etc/v2ray/gen-gfwlist.sh > /tmp/ol-gfw.txt
|
|
|
|
if [ -s "/tmp/ol-gfw.txt" ];then
|
|
sort -u /etc/v2ray/base-gfwlist.txt /tmp/ol-gfw.txt > /tmp/china-banned
|
|
if ( ! cmp -s /tmp/china-banned /etc/gfwlist/china-banned );then
|
|
if [ -s "/tmp/china-banned" ];then
|
|
mv /tmp/china-banned /etc/gfwlist/china-banned
|
|
echo "Update GFW-List Done!"
|
|
fi
|
|
else
|
|
echo "GFW-List No Change!"
|
|
fi
|
|
fi
|
|
|
|
rm -f /tmp/gfwlist.txt
|
|
rm -f /tmp/ol-gfw.txt
|
|
|
|
/etc/init.d/v2raypro restart
|