]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg-quick: openbsd: fix alternate routing table syntax
authorAnkur Kothari <ankur@lipidity.com>
Mon, 5 Aug 2019 22:57:28 +0000 (08:57 +1000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 7 Aug 2019 08:41:26 +0000 (10:41 +0200)
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>
src/wg-quick/openbsd.bash

index b2346097ce2adcd782e5877b943d27b0197dbcf8..2cadeecb61741d0d0bf12e985f6ae6056c35d0a9 100755 (executable)
@@ -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