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:
		
							parent
							
								
									a9abb21575
								
							
						
					
					
						commit
						af69113e02
					
				@ -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[@]}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user