From 490c0d31d6f364bb9fd43c137dfa3a7b1a8e1f85 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 27 Nov 2019 17:12:08 +0100 Subject: wg-quick: linux: suppress error when finding unused table --- src/tools/wg-quick/linux.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/wg-quick/linux.bash') diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash index 0764dc6..81b1629 100755 --- a/src/tools/wg-quick/linux.bash +++ b/src/tools/wg-quick/linux.bash @@ -199,7 +199,7 @@ add_default() { local table proto i iptables if ! get_fwmark table; then table=51820 - while [[ -n $(ip -4 route show table $table) || -n $(ip -6 route show table $table) ]]; do + while [[ -n $(ip -4 route show table $table 2>/dev/null) || -n $(ip -6 route show table $table 2>/dev/null) ]]; do ((table++)) done cmd wg set "$INTERFACE" fwmark $table -- cgit v1.2.3-59-g8ed1b