Skip to content

Commit

Permalink
Fix Mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
twnesss committed Dec 8, 2024
1 parent 18040d2 commit 55467ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions box/scripts/box.iptables
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion box/scripts/box.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55467ca

Please sign in to comment.