diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 581954c..dfdd54e 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -236,10 +236,9 @@ set_endpoint_direct_route() { declare -A SERVICE_DNS collect_new_service_dns() { - # TODO: switch to scutil for all DNS modification local service get_response local -A found_services - { read -r _; while read -r service; do + { read -r _ && while read -r service; do [[ $service == "*"* ]] && service="${service:1}" found_services["$service"]=1 [[ -n ${SERVICE_DNS["$service"]} ]] && continue