diff options
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() { |