diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-31 22:26:00 +0200 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-07-31 22:26:00 +0200 |
commit | d842fa622d22e1b23fbd86c91ba7b1ee2b2cfaec (patch) | |
tree | 07efb1e74de4c1da104ae601cee3155aed864414 /cli | |
parent | 094def7783de23e61c7650c2499d6cdb3ae76c08 (diff) |
cli: only call DNS if there is DNS
Diffstat (limited to 'cli')
-rw-r--r-- | cli/wg-quick.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/wg-quick.bash b/cli/wg-quick.bash index 7720f349..4a1bce29 100644 --- a/cli/wg-quick.bash +++ b/cli/wg-quick.bash @@ -86,7 +86,7 @@ up_if() { } set_dns() { - cndc resolver setnetdns "$NETID" "" "${DNS[@]}" + [[ ${#DNS[@]} -eq 0 ]] || cndc resolver setnetdns "$NETID" "" "${DNS[@]}" } add_addr() { |