aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-11-27 17:12:08 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-11-27 17:12:15 +0100
commita9abb2157547ad6e60931e741ce3707ab3c8788e (patch)
treec8f6bb87ad8d66c5ee9f4c5b9a572ce0000ec621 /src
parentwg: add syncconf command (diff)
downloadwireguard-tools-a9abb2157547ad6e60931e741ce3707ab3c8788e.tar.xz
wireguard-tools-a9abb2157547ad6e60931e741ce3707ab3c8788e.zip
wg-quick: linux: suppress error when finding unused table
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wg-quick/linux.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash
index 0764dc6..81b1629 100755
--- a/src/wg-quick/linux.bash
+++ b/src/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