diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index 695bd48..2de3476 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/bin/version b/bin/version index 2358b0a..7d430aa 100644 --- a/bin/version +++ b/bin/version @@ -1 +1 @@ -versionsh=0.9.1 +versionsh=0.9.2 diff --git a/scripts/clash.sh b/scripts/clash.sh index c86876c..bdef99d 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -2,8 +2,6 @@ # Copyright (C) Juewuy getconfig(){ -#版本号 -#versionsh_l=0.9.0 #服务器地址 if [ -z "$update_url" ]; then update_url=https://cdn.jsdelivr.net/gh/juewuy/clash-for-Miwifi/ @@ -831,6 +829,8 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then iptables -t nat -L PREROUTING --line-numbers echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ iptables -t nat -L clash --line-numbers + echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + iptables -t nat -L clash_dns --line-numbers exit; elif [[ $num == 5 ]]; then echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/scripts/clashservice b/scripts/clashservice index 05ee0e4..8fb803a 100644 --- a/scripts/clashservice +++ b/scripts/clashservice @@ -112,14 +112,14 @@ start_redir(){ stop_iptables(){ #重置iptables规则 iptables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1 - iptables -t nat -D PREROUTING -p tcp -j clash_dns > /dev/null 2>&1 + iptables -t nat -D PREROUTING -p udp -j clash_dns > /dev/null 2>&1 iptables -t nat -F clash > /dev/null 2>&1 iptables -t nat -X clash > /dev/null 2>&1 iptables -t nat -F clash_dns > /dev/null 2>&1 iptables -t nat -X clash_dns > /dev/null 2>&1 #重置ipv6规则 ip6tables -t nat -D PREROUTING -p tcp -j clash > /dev/null 2>&1 - ip6tables -t nat -D PREROUTING -p tcp -j clash_dns > /dev/null 2>&1 + ip6tables -t nat -D PREROUTING -p udp -j clash_dns > /dev/null 2>&1 ip6tables -t nat -F clash > /dev/null 2>&1 ip6tables -t nat -X clash > /dev/null 2>&1 ip6tables -t nat -F clash_dns > /dev/null 2>&1