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>
GATEWAY6=""
while read -r destination gateway _; do
[[ $destination == default ]] || continue
- [[ $gateway == fe80:* ]] && continue
GATEWAY6="$gateway"
break
done < <(netstat -nr -f inet6)
GATEWAY6=""
while read -r destination gateway _; do
[[ $destination == default ]] || continue
- [[ $gateway == fe80:* ]] && continue
GATEWAY6="$gateway"
break
done < <(netstat -nr -f inet6)
GATEWAY6=""
while read -r destination gateway _; do
[[ $destination == default ]] || continue
- [[ $gateway == fe80:* ]] && continue
GATEWAY6="$gateway"
break
done < <(netstat -nr -f inet6)