wg-quick: linux: have remove_iptables return true
Reported-by: Thomas Sattler <sattler@med.uni-frankfurt.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
af69113e02
commit
207aeed010
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ remove_iptables() {
|
|||
[[ $line == "-A"* ]] && found=1
|
||||
printf -v restore '%s\n%s' "$restore" "${line/#-A/-D}"
|
||||
done < <($iptables-save)
|
||||
[[ $found -eq 1 ]] && echo "$restore" | cmd $iptables-restore -nw
|
||||
[[ $found -ne 1 ]] || echo "$restore" | cmd $iptables-restore -nw
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue