Sync 2024-07-27 06:31:00

This commit is contained in:
github-actions[bot] 2024-07-27 06:31:00 +08:00
parent 9ef47ce5d6
commit d47bb99e59
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ stop_instance() {
rm -f "/usr/share/nftables.d/chain-pre/forward/zerotier.nft" "/usr/share/nftables.d/chain-pre/srcnat/zerotier.nft"
fw4 reload
echo "zt interface rules removed!" > /tmp/zero.log 2>&1 &
} else {
} || {
zt0="$(ifconfig | grep 'zt' | awk '{print $1}')"
[ -z "${zt0}" ] && zt0="$(cat "/tmp/zt.nif")"

View File

@ -35,7 +35,7 @@ nat_enable="$(uci get zerotier.sample_config.nat)"
uci -q set firewall.@defaults[0].auto_includes="1"
uci -q commit firewall
fw4 reload
} else {
} || {
zt0="$(ifconfig | grep 'zt' | awk '{print $1}')"
echo "${zt0}" > "/tmp/zt.nif"
for i in ${zt0}