From: Ankur Kothari Date: Mon, 5 Aug 2019 22:57:28 +0000 (+1000) Subject: wg-quick: openbsd: fix alternate routing table syntax X-Git-Tag: v1.0.20191226~28 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5df58a945d839991dd270e3d5d4d853dc1c50f6f;p=thirdparty%2Fwireguard-tools.git 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 Signed-off-by: Jason A. Donenfeld --- 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