diff options
author | Ankur Kothari <ankur@lipidity.com> | 2019-08-06 08:57:28 +1000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-07 10:41:26 +0200 |
commit | 5df58a945d839991dd270e3d5d4d853dc1c50f6f (patch) | |
tree | 4ad1a2abcfe05d4d8f3676a5033e8a5a52cf9e82 /src/wg-quick | |
parent | wg-quick: android: refactor and add incoming allow rules (diff) | |
download | wireguard-tools-5df58a945d839991dd270e3d5d4d853dc1c50f6f.tar.xz wireguard-tools-5df58a945d839991dd270e3d5d4d853dc1c50f6f.zip |
wg-quick: openbsd: fix alternate routing table syntax
route(8) has always used the `-T` option to specify the
routing table; there is no `rdomain` option.
Signed-off-by: Ankur Kothari <ankur@lipidity.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/wg-quick')
-rwxr-xr-x | src/wg-quick/openbsd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wg-quick/openbsd.bash b/src/wg-quick/openbsd.bash index b234609..2cadeec 100755 --- a/src/wg-quick/openbsd.bash +++ b/src/wg-quick/openbsd.bash @@ -293,7 +293,7 @@ add_route() { fi if [[ -n $TABLE && $TABLE != auto ]]; then - cmd route -q -n add "-$family" -rdomain "$TABLE" "$1" -iface "$ifaceroute" + cmd route -q -n -T "$TABLE" add "-$family" "$1" -iface "$ifaceroute" elif [[ $1 == */0 ]]; then if [[ $1 == *:* ]]; then AUTO_ROUTE6=1 |