wg-quick: linux: suppress error when finding unused table
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ae374129ab
commit
a9abb21575
|
@ -199,7 +199,7 @@ add_default() {
|
||||||
local table proto i iptables
|
local table proto i iptables
|
||||||
if ! get_fwmark table; then
|
if ! get_fwmark table; then
|
||||||
table=51820
|
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++))
|
((table++))
|
||||||
done
|
done
|
||||||
cmd wg set "$INTERFACE" fwmark $table
|
cmd wg set "$INTERFACE" fwmark $table
|
||||||
|
|
Reference in New Issue