aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-12-06 16:51:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-06 16:51:05 +0100
commitd6fb17609c12384acafca37df9717c765bdddad2 (patch)
tree43101b2be35af05b24fbfbe3b979c51f1534a47b /src/tools
parentwg-quick: linux: suppress more warnings on weird kernels (diff)
downloadwireguard-monolithic-historical-d6fb17609c12384acafca37df9717c765bdddad2.tar.xz
wireguard-monolithic-historical-d6fb17609c12384acafca37df9717c765bdddad2.zip
wg-quick: linux: ignore save warnings for iptables-nft
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/wg-quick/linux.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
index 4e1f8ee..9bfeed1 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -189,7 +189,7 @@ remove_iptables() {
[[ $line == "*"* || $line == COMMIT || $line == "-A "*"-m comment --comment \"wg-quick(8) rule for $INTERFACE\""* ]] || continue
[[ $line == "-A"* ]] && found=1
printf -v restore '%s%s\n' "$restore" "${line/#-A/-D}"
- done < <($iptables-save)
+ done < <($iptables-save 2>/dev/null)
[[ $found -ne 1 ]] || echo -n "$restore" | cmd $iptables-restore -n
done
}