]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg-quick: darwin: networksetup does not like missing stdio
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 May 2018 02:50:18 +0000 (04:50 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 May 2018 03:01:50 +0000 (05:01 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/darwin.bash

index 0edf2fea1c713d2b0919704ac59651015761c8a1..c61187775d5eaa1b26227b26f48ed0fb3684a77a 100755 (executable)
@@ -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