aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 19:31:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 19:31:40 +0200
commit98450fdb14028b26c41a82e2f53dfe1d1ab47bcb (patch)
treeeb8cc669cb8b466c3b8272b19098264da53f73b8
parentcontrib: add systemd-resolved workaround script (diff)
downloadWireGuard-jd/systemd-resolved.tar.xz
WireGuard-jd/systemd-resolved.zip
wg-quick: linux: check for right routejd/systemd-resolved
-rwxr-xr-xsrc/tools/wg-quick/linux.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
index 3f1976b..48ce163 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -168,7 +168,7 @@ add_route() {
elif [[ $1 == */0 ]]; then
add_default "$1"
else
- [[ $(ip route get "$i" 2>/dev/null) == *dev\ $INTERFACE\ * ]] || cmd ip route add "$1" dev "$INTERFACE"
+ [[ $(ip route get "$1" 2>/dev/null) == *dev\ $INTERFACE\ * ]] || cmd ip route add "$1" dev "$INTERFACE"
fi
}