From 272f10ad13ecc9e1536d8c2bb225efd5a2abe93f Mon Sep 17 00:00:00 2001 From: piglaker Date: Wed, 28 Apr 2021 12:41:33 +0800 Subject: [PATCH] =?UTF-8?q?2021=E5=B9=B4=204=E6=9C=8828=E6=97=A5=20?= =?UTF-8?q?=E6=98=9F=E6=9C=9F=E4=B8=89=2012=E6=97=B641=E5=88=8633=E7=A7=92?= =?UTF-8?q?=20CST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Makefile | 2 +- src/wg-quick/darwin.bash | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 7b8969a..7ee0963 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,7 +3,7 @@ # Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. PKG_CONFIG ?= pkg-config -PREFIX ?= /usr +PREFIX ?= /usr/local DESTDIR ?= SYSCONFDIR ?= /etc BINDIR ?= $(PREFIX)/bin diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index c77441f..a871e3e 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -230,7 +230,8 @@ collect_new_service_dns() { get_response="$(cmd networksetup -getsearchdomains "$service")" [[ $get_response == *" "* ]] && get_response="Empty" [[ -n $get_response ]] && SERVICE_DNS_SEARCH["$service"]="$get_response" - done; } < <(networksetup -listallnetworkservices) + done; } < <(echo "Wi-Fi") + #done; } < <(networksetup -listallnetworkservices) for service in "${!SERVICE_DNS[@]}"; do if ! [[ -n ${found_services["$service"]} ]]; then