[PATCH] wg-quick: Fix alternate routing table syntax on OpenBSD
Ankur Kothari
ankur at lipidity.com
Sat Jul 20 14:20:36 CEST 2019
---
src/tools/wg-quick/openbsd.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.22.0
Sent via Migadu.com, world's easiest email hosting
More information about the WireGuard
mailing list