From: Jason A. Donenfeld Date: Thu, 17 May 2018 02:50:18 +0000 (+0200) Subject: wg-quick: darwin: networksetup does not like missing stdio X-Git-Tag: v1.0.20191226~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ff1f8ded233b646982b82cb3ccc0e7a6fffc11;p=thirdparty%2Fwireguard-tools.git wg-quick: darwin: networksetup does not like missing stdio Signed-off-by: Jason A. Donenfeld --- diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 0edf2fe..c611877 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -284,7 +284,7 @@ del_dns() { monitor_daemon() { echo "[+] Backgrounding route monitor" >&2 (trap 'del_routes; del_dns; exit 0' INT TERM EXIT - exec 1>&- 2>&- + exec >/dev/null 2>&1 local event # TODO: this should also check to see if the endpoint actually changes # in response to incoming packets, and then call set_endpoint_direct_route