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
					
				
					 3 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -187,7 +187,6 @@ collect_gateways() {
 | 
				
			||||||
	GATEWAY6=""
 | 
						GATEWAY6=""
 | 
				
			||||||
	while read -r destination gateway _; do
 | 
						while read -r destination gateway _; do
 | 
				
			||||||
		[[ $destination == default ]] || continue
 | 
							[[ $destination == default ]] || continue
 | 
				
			||||||
		[[ $gateway == fe80:* ]] && continue
 | 
					 | 
				
			||||||
		GATEWAY6="$gateway"
 | 
							GATEWAY6="$gateway"
 | 
				
			||||||
		break
 | 
							break
 | 
				
			||||||
	done < <(netstat -nr -f inet6)
 | 
						done < <(netstat -nr -f inet6)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -188,7 +188,6 @@ collect_gateways() {
 | 
				
			||||||
	GATEWAY6=""
 | 
						GATEWAY6=""
 | 
				
			||||||
	while read -r destination gateway _; do
 | 
						while read -r destination gateway _; do
 | 
				
			||||||
		[[ $destination == default ]] || continue
 | 
							[[ $destination == default ]] || continue
 | 
				
			||||||
		[[ $gateway == fe80:* ]] && continue
 | 
					 | 
				
			||||||
		GATEWAY6="$gateway"
 | 
							GATEWAY6="$gateway"
 | 
				
			||||||
		break
 | 
							break
 | 
				
			||||||
	done < <(netstat -nr -f inet6)
 | 
						done < <(netstat -nr -f inet6)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -185,7 +185,6 @@ collect_gateways() {
 | 
				
			||||||
	GATEWAY6=""
 | 
						GATEWAY6=""
 | 
				
			||||||
	while read -r destination gateway _; do
 | 
						while read -r destination gateway _; do
 | 
				
			||||||
		[[ $destination == default ]] || continue
 | 
							[[ $destination == default ]] || continue
 | 
				
			||||||
		[[ $gateway == fe80:* ]] && continue
 | 
					 | 
				
			||||||
		GATEWAY6="$gateway"
 | 
							GATEWAY6="$gateway"
 | 
				
			||||||
		break
 | 
							break
 | 
				
			||||||
	done < <(netstat -nr -f inet6)
 | 
						done < <(netstat -nr -f inet6)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue