wg-quick: allow link local default gateway
It's unclear why it was like this in the first place, but it apparently broke certain IPv6 setups. Reported-by: Jonas Blahut <j@die-blahuts.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
		
							parent
							
								
									4502f4f2b7
								
							
						
					
					
						commit
						4349005f4e
					
				@ -187,7 +187,6 @@ collect_gateways() {
 | 
			
		||||
	GATEWAY6=""
 | 
			
		||||
	while read -r destination gateway _; do
 | 
			
		||||
		[[ $destination == default ]] || continue
 | 
			
		||||
		[[ $gateway == fe80:* ]] && continue
 | 
			
		||||
		GATEWAY6="$gateway"
 | 
			
		||||
		break
 | 
			
		||||
	done < <(netstat -nr -f inet6)
 | 
			
		||||
 | 
			
		||||
@ -188,7 +188,6 @@ collect_gateways() {
 | 
			
		||||
	GATEWAY6=""
 | 
			
		||||
	while read -r destination gateway _; do
 | 
			
		||||
		[[ $destination == default ]] || continue
 | 
			
		||||
		[[ $gateway == fe80:* ]] && continue
 | 
			
		||||
		GATEWAY6="$gateway"
 | 
			
		||||
		break
 | 
			
		||||
	done < <(netstat -nr -f inet6)
 | 
			
		||||
 | 
			
		||||
@ -185,7 +185,6 @@ collect_gateways() {
 | 
			
		||||
	GATEWAY6=""
 | 
			
		||||
	while read -r destination gateway _; do
 | 
			
		||||
		[[ $destination == default ]] || continue
 | 
			
		||||
		[[ $gateway == fe80:* ]] && continue
 | 
			
		||||
		GATEWAY6="$gateway"
 | 
			
		||||
		break
 | 
			
		||||
	done < <(netstat -nr -f inet6)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user