]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg-quick: allow link local default gateway
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 16 Jul 2018 15:27:00 +0000 (17:27 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 16 Jul 2018 15:27:00 +0000 (17:27 +0200)
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>
src/wg-quick/darwin.bash
src/wg-quick/freebsd.bash
src/wg-quick/openbsd.bash

index 8bcc40467da36b532ef520463bf8e19afe1e092d..ece16f2756df51076e8da5ca0e4b8cbb8faaab60 100755 (executable)
@@ -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)
index 40dc3f16d59d90898923e57bb3680dba3c5e846b..a2bdafb3df89a6140e0cf5b79d623460a9c4b285 100755 (executable)
@@ -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)
index 786d145d2199649d3a9b86c81dbe43cc648646d3..e0c6d1a92322b45828d3ae2909deb3a7fadb0438 100755 (executable)
@@ -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)