~增加meta内核
~增加对更多华硕/梅林设备的支持
~修复部分设备修改端口时报错的bug
~尝试修复tun/混合模式时产生流量回环的bug
This commit is contained in:
juewuy
2022-01-05 23:20:48 +08:00
parent 42bc60c5c6
commit c4b93ddadd
3 changed files with 14 additions and 2 deletions

View File

@@ -3,3 +3,4 @@ clash_v=1.7.1
clashpre_v=2021.09.15
GeoIP_v=202112310302
versionsh=1.4.8
meta_v=1.9.0

View File

@@ -453,9 +453,12 @@ setcore(){
echo "(高级预览版) 内存占用更高"
echo
echo "3 clash.net 支持vless/xtls"
echo "(.net定制版) 未测试,可能不稳定"
echo "(.net定制版) 第三方定制内核"
echo
echo "4 手动指定处理器架构"
echo "4 clash.meta支持vless/xtls"
echo "(meta定制版) 第三方定制内核"
echo
echo "5 手动指定处理器架构"
echo -----------------------------------------------
echo 0 返回上级菜单
read -p "请输入对应数字 > " num
@@ -476,6 +479,10 @@ setcore(){
version=$clashnet_v
getcore
elif [ "$num" = 4 ]; then
clashcore=clash.meta
version=$meta_v
getcore
elif [ "$num" = 5 ]; then
setcpucore
setcore
else

View File

@@ -282,6 +282,10 @@ EOF
sed -i "/^rules:/a\\$space$line #自定义规则" $tmpdir/config.yaml
done < $clashdir/rules.yaml
fi
#tun/fake-ip防止流量回环
if [ "$redir_mod" = "混合模式" -o "$redir_mod" = "Tun模式" -o "$dns_mod" = "fake-ip" ];then
sed -i "/^rules:/a\\ - SRC-IP-CIDR,198.18.0.0/16,REJECT #自定义规则(防止回环)" $tmpdir/config.yaml
fi
#如果没有使用小闪存模式
if [ "$tmpdir" != "$bindir" ];then
cmp -s $tmpdir/config.yaml $yaml >/dev/null 2>&1