aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-11-28 13:49:34 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-11-28 13:51:04 +0100
commit19b2fb70620d5d664549b1e9dd5f123ab1a1baf5 (patch)
tree9ad3001b8f6f4ffe2cbb820e9aa641f0964c31b0
parentnetlink: prepare for removal of genl_family_attrbuf in 5.5 (diff)
downloadWireGuard-19b2fb70620d5d664549b1e9dd5f123ab1a1baf5.tar.xz
WireGuard-19b2fb70620d5d664549b1e9dd5f123ab1a1baf5.zip
wg-quick: linux: ensure postdown hooks execute
Reported-by: Thomas Sattler <sattler@med.uni-frankfurt.de>
-rwxr-xr-xsrc/tools/wg-quick/linux.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
index 81b1629..dca7b3d 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -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[@]}"
}