diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-06 16:51:05 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-06 16:51:05 +0100 |
commit | d6fb17609c12384acafca37df9717c765bdddad2 (patch) | |
tree | 43101b2be35af05b24fbfbe3b979c51f1534a47b /src/tools/wg-quick/linux.bash | |
parent | wg-quick: linux: suppress more warnings on weird kernels (diff) | |
download | wireguard-monolithic-historical-d6fb17609c12384acafca37df9717c765bdddad2.tar.xz wireguard-monolithic-historical-d6fb17609c12384acafca37df9717c765bdddad2.zip |
wg-quick: linux: ignore save warnings for iptables-nft
Diffstat (limited to '')
-rwxr-xr-x | src/tools/wg-quick/linux.bash | 2 |
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 } |