Fix Mistake

This commit is contained in:
twnesss
2024-12-09 03:43:24 +07:00
committed by dependabot-preview[bot]
parent 18040d211b
commit 6033ddbbc0
2 changed files with 3 additions and 3 deletions

View File

@@ -415,8 +415,8 @@ stop_redirect() {
fi
if [ "${iptables}" = "$IPV" ]; then
${iptables} -t nat -D BOX_EXTERNAL -d "${fake_ip_range}" -p icmp -j DNAT --to-destination 127.0.0.1
${iptables} -t nat -D BOX_LOCAL -d "${fake_ip_range}" -p icmp -j DNAT --to-destination 127.0.0.1
# ${iptables} -t nat -D BOX_EXTERNAL -d "${fake_ip_range}" -p icmp -j DNAT --to-destination 127.0.0.1
# ${iptables} -t nat -D BOX_LOCAL -d "${fake_ip_range}" -p icmp -j DNAT --to-destination 127.0.0.1
${iptables} -t nat -F BOX_EXTERNAL
${iptables} -t nat -X BOX_EXTERNAL
${iptables} -t nat -F BOX_LOCAL

View File

@@ -353,7 +353,7 @@ prepare_clash() {
sed -i "/tun:/,/enable:/ { /enable: false/ s/enable: false/enable: true/ }" "${clash_config}"
else
sed -i "/tun:/,/enable:/ { /enable: true/ s/enable: false/enable: false/ }" "${clash_config}"
sed -i "/tun:/,/enable:/ { /enable: true/ s/enable: true/enable: false/ }" "${clash_config}"
fi
# sync tproxy/redir port