* remove an unnecessary call to unset_dns
@ 2019-10-31 23:40 Arjen Runsink
2019-11-27 12:44 ` Jason A. Donenfeld
0 siblings, 1 reply; 2+ messages in thread
From: Arjen Runsink @ 2019-10-31 23:40 UTC (permalink / raw)
To: wireguard
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-27 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31 23:40 remove an unnecessary call to unset_dns Arjen Runsink
2019-11-27 12:44 ` Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).