diff --git a/scripts/clash.sh b/scripts/clash.sh index 5cf6fd6..a224409 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -386,13 +386,13 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then echo ----------------------------------------------- echo " 1 Redir模式:CPU以及内存占用较低" echo " 但不支持UDP流量转发" - echo " 日常使用推荐此模式" - echo " 2 Tun模式: 支持UDP转发且延迟低" - echo " 但CPU及内存占用更高" - echo " 且不支持redir-host" - echo " 3 混合模式: 仅使用Tun转发UPD流量" - echo " CPU和内存占用较高" - echo " 不推荐使用redir-host" + echo " 适合非游戏用户使用" + echo " 2 Tun模式: 支持UDP转发且延迟最低" + echo " CPU占用极高,只支持fake-ip模式" + echo " 适合游戏用户、非大流量用户" + echo " 3 混合模式: 使用redir转发TCP,Tun转发UPD" + echo " 速度较快,内存占用略高" + echo " 适合游戏用户、综合用户" echo " 4 纯净模式: 不设置iptables静态路由" echo " 必须手动配置http/sock5代理" echo " 0 返回上级菜单" diff --git a/scripts/start.sh b/scripts/start.sh index 8480567..7d718e1 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -82,7 +82,7 @@ if [ "$result" != "200" ];then read -p "是否更换后端地址后重试?[1/0] > " res if [ "$res" = '1' ]; then sed -i '/server_link=*/'d $ccfg - if [[ $server_link -ge 6 ]]; then + if [[ $server_link -ge 5 ]]; then server_link=0 fi server_link=$(($server_link + 1)) @@ -287,12 +287,10 @@ set_proxy(){ echo 'export https_proxy=$http_proxy' >> /etc/profile echo 'export HTTP_PROXY=$http_proxy' >> /etc/profile echo 'export HTTPS_PROXY=$http_proxy' >> /etc/profile - source /etc/profile > /dev/null 2>&1 } unset_proxy(){ sed -i '/http*_proxy/'d /etc/profile sed -i '/HTTP*_PROXY/'d /etc/profile - source /etc/profile > /dev/null 2>&1 } afstart(){ #读取配置文件 @@ -305,6 +303,7 @@ afstart(){ mark_time #设置本机代理 [ "$local_proxy" = "已开启" ] && set_proxy + } case "$1" in @@ -357,3 +356,5 @@ daemon) daemon ;; esac + +exit 0