wg-quick: darwin: simpler inclusion check
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
986feba2ee
commit
434bc616b2
|
@ -207,7 +207,7 @@ collect_new_service_dns() {
|
||||||
done; } < <(networksetup -listallnetworkservices)
|
done; } < <(networksetup -listallnetworkservices)
|
||||||
|
|
||||||
for service in "${!SERVICE_DNS[@]}"; do
|
for service in "${!SERVICE_DNS[@]}"; do
|
||||||
[[ ${found_services["$service"]} == 1 ]] || unset SERVICE_DNS["$service"]
|
[[ -n ${found_services["$service"]} ]] || unset SERVICE_DNS["$service"]
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue