1.合并Tun和Redir模式为一套文件,可以通过管理脚本直接切换

2.同步官方最新premium版核心,支持SSR
3.优化脚本可用性,增加了部分实用功能
This commit is contained in:
juewuy
2020-07-26 22:44:33 +08:00
parent 8c0ffc1fd0
commit fb8634aff9
2 changed files with 4 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then
elif [[ $num == 1 ]]; then
if [[ $Mark3 = "Redir模式" ]]; then
sed -i '1,20s/Redir模式/Tun模式/' /bin/clash #修改Mark3标记
sed -i '1,40s/tun: {enable: false/tun: {enable: true/' /etc/clash/config.yaml #修改配置文件
if [ $Number1 -gt 0 ];then
echo -----------------------------------------------
echo -e "\033[33m正在重启clash进程……\033[0m"
@@ -74,7 +74,7 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then
elif [[ $num == 2 ]]; then
if [[ $Mark3 = "Tun模式" ]]; then
sed -i '1,20s/Tun模式/Redir模式/' /bin/clash #修改Mark3标记
sed -i '1,40s/tun: {enable: true/tun: {enable: false/' /etc/clash/config.yaml #修改配置文件
if [ $Number1 -gt 0 ];then
echo -----------------------------------------------
echo -e "\033[33m正在重启clash进程……\033[0m"