Due to a bug in a driver, a network adapter had a space character at the end of 
the name. This patch should allow the script to correctly read the name of the 
adapter.

---
src/wg-quick/darwin.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash
index 8e46818..b6bb5dc 100755
--- a/src/wg-quick/darwin.bash
+++ b/src/wg-quick/darwin.bash
@@ -220,7 +220,7 @@ declare -A SERVICE_DNS_SEARCH
collect_new_service_dns() {
               local service get_response
               local -A found_services
-              { read -r _ && while read -r service; do
+             { read -r _ && while IFS= read -r service; do
                               [[ $service == "*"* ]] && service="${service:1}"
                               found_services["$service"]=1
                               [[ -n ${SERVICE_DNS["$service"]} ]] && continue
-- 
2.32.0.windows.1

Reply via email to