cli: only call DNS if there is DNS
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b2f4a755a0
commit
506d871013
@ -86,7 +86,7 @@ up_if() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_dns() {
|
set_dns() {
|
||||||
cndc resolver setnetdns "$NETID" "" "${DNS[@]}"
|
[[ ${#DNS[@]} -eq 0 ]] || cndc resolver setnetdns "$NETID" "" "${DNS[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
add_addr() {
|
add_addr() {
|
||||||
|
Loading…
Reference in New Issue
Block a user