aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-17 04:50:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-17 05:01:50 +0200
commitba0392cc041eda2863e79696d514d2795f326e42 (patch)
treecf45374fdad782b8c789340092030e3468f9208f
parentwg-quick: darwin: avoid routing loop if no default (diff)
downloadwireguard-monolithic-historical-ba0392cc041eda2863e79696d514d2795f326e42.tar.xz
wireguard-monolithic-historical-ba0392cc041eda2863e79696d514d2795f326e42.zip
wg-quick: darwin: networksetup does not like missing stdio
-rwxr-xr-xsrc/tools/wg-quick/darwin.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick/darwin.bash b/src/tools/wg-quick/darwin.bash
index 0edf2fe..c611877 100755
--- a/src/tools/wg-quick/darwin.bash
+++ b/src/tools/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