wg-quick: linux: ensure postdown hooks execute

Reported-by: Thomas Sattler <sattler@med.uni-frankfurt.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-11-28 13:49:34 +01:00
parent a9abb21575
commit af69113e02
1 changed files with 2 additions and 2 deletions

View File

@ -322,8 +322,8 @@ cmd_down() {
execute_hooks "${PRE_DOWN[@]}"
[[ $SAVE_CONFIG -eq 0 ]] || save_config
del_if
unset_dns
remove_iptables
unset_dns || true
remove_iptables || true
execute_hooks "${POST_DOWN[@]}"
}