From af69113e02e7812ca370fedf36ba2f0d05886d13 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 28 Nov 2019 13:49:34 +0100 Subject: wg-quick: linux: ensure postdown hooks execute Reported-by: Thomas Sattler Signed-off-by: Jason A. Donenfeld --- src/wg-quick/linux.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wg-quick/linux.bash') diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash index 81b1629..dca7b3d 100755 --- a/src/wg-quick/linux.bash +++ b/src/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[@]}" } -- cgit v1.2.3-59-g8ed1b