diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-27 17:12:08 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-27 17:12:15 +0100 |
commit | 490c0d31d6f364bb9fd43c137dfa3a7b1a8e1f85 (patch) | |
tree | 464f5bd135feae3fb7dd913041fb835296fce741 /src/tools | |
parent | version: bump snapshot (diff) | |
download | wireguard-monolithic-historical-490c0d31d6f364bb9fd43c137dfa3a7b1a8e1f85.tar.xz wireguard-monolithic-historical-490c0d31d6f364bb9fd43c137dfa3a7b1a8e1f85.zip |
wg-quick: linux: suppress error when finding unused table
Diffstat (limited to '')
-rwxr-xr-x | src/tools/wg-quick/linux.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |