mirror of
https://github.com/kiddin9/openwrt-packages.git
synced 2025-01-09 09:47:28 +08:00
⛄ Sync 2024-07-27 06:31:00
This commit is contained in:
parent
9ef47ce5d6
commit
d47bb99e59
@ -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")"
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user