From fb8634aff9e7c9bb4c1b0d167c9d5fe2ba11fac0 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sun, 26 Jul 2020 22:44:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=90=88=E5=B9=B6Tun=E5=92=8CRedir=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=BA=E4=B8=80=E5=A5=97=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87=E7=AE=A1=E7=90=86=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=9B=B4=E6=8E=A5=E5=88=87=E6=8D=A2=202.=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=AE=98=E6=96=B9=E6=9C=80=E6=96=B0premium=E7=89=88?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=EF=BC=8C=E6=94=AF=E6=8C=81SSR=203.=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=84=9A=E6=9C=AC=E5=8F=AF=E7=94=A8=E6=80=A7=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E9=83=A8=E5=88=86=E5=AE=9E=E7=94=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash/clashsh | 4 ++-- clash/config.yaml | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/clash/clashsh b/clash/clashsh index 32ffa40..3c6a74a 100644 --- a/clash/clashsh +++ b/clash/clashsh @@ -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" diff --git a/clash/config.yaml b/clash/config.yaml index 7861453..6460740 100644 --- a/clash/config.yaml +++ b/clash/config.yaml @@ -29,16 +29,11 @@ dns: - tcp://1.1.1.1 - tls://dns.google:853 #- 8.8.4.4 - -# tun: #tun模式网卡设置,尽量不要改动 - # enable: true - # stack: system - # dns-hijack: - # - tcp://8.8.8.8:53 +tun: {enable: false, stack: system} experimental: #实验性功能,尽量不要改动 ignore-resolve-fail: true # 忽略 DNS 解析失败,默认值为 true - #interface-name: en0 + interface-name: en0 proxies: #代理节点配置 # 注意ss/ssr节点仅支持如下加密方式: