From: Jason A. Donenfeld Date: Mon, 16 Jul 2018 15:27:00 +0000 (+0200) Subject: wg-quick: allow link local default gateway X-Git-Tag: v1.0.20191226~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4349005f4e508fed9db2891446d75afdfb83ec0f;p=thirdparty%2Fwireguard-tools.git 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 Signed-off-by: Jason A. Donenfeld --- diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 8bcc404..ece16f2 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -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) diff --git a/src/wg-quick/freebsd.bash b/src/wg-quick/freebsd.bash index 40dc3f1..a2bdafb 100755 --- a/src/wg-quick/freebsd.bash +++ b/src/wg-quick/freebsd.bash @@ -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) diff --git a/src/wg-quick/openbsd.bash b/src/wg-quick/openbsd.bash index 786d145..e0c6d1a 100755 --- a/src/wg-quick/openbsd.bash +++ b/src/wg-quick/openbsd.bash @@ -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)