wg-quick: darwin: networksetup does not like missing stdio

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-05-17 04:50:18 +02:00
parent 884f7c50ce
commit 80ff1f8ded
1 changed files with 1 additions and 1 deletions

View File

@ -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