All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arjen Runsink <arjenrr@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: remove an unnecessary call to unset_dns
Date: Fri, 01 Nov 2019 00:40:14 +0100	[thread overview]
Message-ID: <1572565214.3.2@gmail.com> (raw)

The below patch removes an unnecessary call to unset_dns. It is already 
called in del_if and causes an error message since the interface does 
not exist anymore when called here.
Regards, Arjen


diff --git a/src/tools/wg-quick/linux.bash 
b/src/tools/wg-quick/linux.bash
index e690944..d2c7753 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -300,7 +300,6 @@ cmd_down() {
    execute_hooks "${PRE_DOWN[@]}"
    [[ $SAVE_CONFIG -eq 0 ]] || save_config
    del_if
- unset_dns
    execute_hooks "${POST_DOWN[@]}"
 }




_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

             reply	other threads:[~2019-11-27  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-31 23:40 Arjen Runsink [this message]
2019-11-27 12:44 ` remove an unnecessary call to unset_dns Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1572565214.3.2@gmail.com \
    --to=arjenrr@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.