wg-quick: unquote fwmark for bash 4.3

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-02-14 11:41:56 +01:00
parent f60ceb76e6
commit 6448d5557c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ add_if() {
}
del_if() {
DEFAULT_TABLE=$(("$(wg show "$INTERFACE" fwmark)"))
DEFAULT_TABLE=$(( $(wg show "$INTERFACE" fwmark) ))
if [[ $DEFAULT_TABLE -ne 0 ]]; then
while [[ -n $(ip -4 rule show table $DEFAULT_TABLE) ]]; do
cmd ip -4 rule delete table $DEFAULT_TABLE