[PATCH 1/2] wg-quick: darwin: restore original dns settings on failed up

2021-01-24 Thread Loren McIntyre
--- src/wg-quick/darwin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index cde1b54..9c92f87 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -449,7 +449,7 @@ cmd_usage() { cmd_up() { loc

wg-quick: darwin: DNS cleanup & disabled/inactive interface causing setup to fail

2021-01-24 Thread Loren McIntyre
Hello! I've been using wg-quick on macOS 10.14, with wireguard-tools at 1.0.20200827. I had one issue prompt investigation, DNS changes persisted after an interface failed to come up. I found a second, related issue, and added an extra error handling case in the wg-quick/darwin.bash script to f

[PATCH 2/2] wg-quick: darwin: handle disabled interface

2021-01-24 Thread Loren McIntyre
--- src/wg-quick/darwin.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 9c92f87..e9bdfea 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -296,7 +296,7 @@ set_dns() { local service