From 15d289b760538f5885128a34a58160677bd7ebd6 Mon Sep 17 00:00:00 2001 From: Ankur Kothari Date: Tue, 6 Aug 2019 08:57:28 +1000 Subject: 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 --- src/tools/wg-quick/openbsd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/wg-quick/openbsd.bash') diff --git a/src/tools/wg-quick/openbsd.bash b/src/tools/wg-quick/openbsd.bash index b234609..2cadeec 100755 --- a/src/tools/wg-quick/openbsd.bash +++ b/src/tools/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 -- cgit v1.2.3-59-g8ed1b