Fix Mistake
This commit is contained in:
committed by
dependabot-preview[bot]
parent
18040d211b
commit
6033ddbbc0
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user