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>
This commit is contained in:
Ankur Kothari 2019-08-06 08:57:28 +10:00 committed by Jason A. Donenfeld
parent 4062e13127
commit 15d289b760
1 changed files with 1 additions and 1 deletions

View File

@ -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