aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/wg-quick
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wg-quick')
-rwxr-xr-xsrc/tools/wg-quick/linux.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
index d52bad3..423a2c7 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -188,7 +188,8 @@ remove_firewall() {
[[ $table == *" wg-quick-$INTERFACE" ]] && printf -v nftcmd '%sdelete %s\n' "$nftcmd" "$table"
done < <(nft list tables 2>/dev/null)
[[ -z $nftcmd ]] || cmd nft -f <(echo -n "$nftcmd")
- else
+ fi
+ if type -p iptables >/dev/null; then
local line iptables found restore
for iptables in iptables ip6tables; do
restore="" found=0